Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. example:
  2. get_balance(user_id, user_state = nil)
  3. if user_state.blank?
  4. Balance.get(:user_id => user_id, :user_state => user_state)
  5. else
  6. Balance.get(:user_id => user_id)
  7. end
  8. end
  9. =================================
  10. Another example:
  11. if !message.blank?
  12. Notification.notify(:email, {:album_id => album_id, :message => message})
  13. else
  14. Notification.notify(:email, {:album_id => album_id})
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement