Method: Representable::ForCollection#for_collection

Defined in:
lib/representable/for_collection.rb

#for_collectionObject



5
6
7
8
# File 'lib/representable/for_collection.rb', line 5

def for_collection
  # this is done at run-time, not a big fan of this. however, it saves us from inheritance/self problems.
  @collection_representer ||= collection_representer!({}) # DON'T make it inheritable as it would inherit the wrong singular.
end