Class: ExpressTemplates::Components::Presenters::All

Inherits:
ExpressTemplates::Container show all
Defined in:
lib/express_templates/components/all.rb

Instance Method Summary collapse

Methods included from Capabilities::Hideable

included

Instance Method Details

#collectionObject



21
22
23
# File 'lib/express_templates/components/all.rb', line 21

def collection
  self.send(config[:collection_name])
end

#member_nameObject



17
18
19
# File 'lib/express_templates/components/all.rb', line 17

def member_name
  config[:collection_name].to_s.singularize.to_sym
end