Module: LHS::Record::First::ClassMethods
- Defined in:
- lib/lhs/concerns/record/first.rb
Instance Method Summary collapse
Instance Method Details
#first(options = nil) ⇒ Object
9 10 11 |
# File 'lib/lhs/concerns/record/first.rb', line 9 def first( = nil) find_by({}, ) end |
#first!(options = nil) ⇒ Object
13 14 15 |
# File 'lib/lhs/concerns/record/first.rb', line 13 def first!( = nil) find_by!({}, ) end |