Guest User

Untitled

a guest
Apr 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. has_many :transactions, :class_name => 'OrderTransaction' do
  2. def first_successful
  3. self.select { |each| each.success == true }.first
  4. end
  5. end
Add Comment
Please, Sign In to add comment