Module: ObjectAttorney::Record::ClassMethods
- Defined in:
- lib/object_attorney/record.rb
Instance Method Summary collapse
Instance Method Details
#all(*args) ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/object_attorney/record.rb', line 105 def all(*args) if represented_object_class.respond_to?(:all) represented_object_class.all(*args).map { |represented_object| self.new({}, represented_object) } else [] end end |