Module: Errgonomic::Rails::ActiveRecordRelationFind
- Defined in:
- lib/errgonomic/rails/active_record_optional.rb
Overview
A relation and an association reach find without passing the class method, so the same list has to be unwrapped there as well.
Instance Method Summary collapse
Instance Method Details
#find(*ids, &block) ⇒ Object
704 705 706 |
# File 'lib/errgonomic/rails/active_record_optional.rb', line 704 def find(*ids, &block) super(*ids.map { |id| Errgonomic::Rails.(id) }, &block) end |