Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example:
- get_balance(user_id, user_state = nil)
- if user_state.blank?
- Balance.get(:user_id => user_id, :user_state => user_state)
- else
- Balance.get(:user_id => user_id)
- end
- end
- =================================
- Another example:
- if !message.blank?
- Notification.notify(:email, {:album_id => album_id, :message => message})
- else
- Notification.notify(:email, {:album_id => album_id})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement