Class: ExpressTemplates::Components::Presenters::All
- Inherits:
-
ExpressTemplates::Container
- Object
- Components::Container
- ExpressTemplates::Container
- ExpressTemplates::Components::Presenters::All
- Defined in:
- lib/express_templates/components/all.rb
Instance Method Summary collapse
Methods included from Capabilities::Hideable
Instance Method Details
#collection ⇒ Object
21 22 23 |
# File 'lib/express_templates/components/all.rb', line 21 def collection self.send(config[:collection_name]) end |
#member_name ⇒ Object
17 18 19 |
# File 'lib/express_templates/components/all.rb', line 17 def member_name config[:collection_name].to_s.singularize.to_sym end |