Method: ActiveRecord::ClassMethods#find_by
- Defined in:
- lib/reactive_record/active_record/class_methods.rb
#find_by(opts = {}) ⇒ Object
48 49 50 |
# File 'lib/reactive_record/active_record/class_methods.rb', line 48 def find_by(opts = {}) base_class.instance_eval {ReactiveRecord::Base.find(self, opts.first.first, opts.first.last)} end |