Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. get_balance(user_id, user_state = nil)
  2. if user_state.blank?
  3. Balance.where(:user_id => user_id, :user_state => user_state)
  4. else
  5. Balance.where(:user_id => user_id)
  6. end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement