Module: InheritedTemplates::InheritedResources::NameHelpers
- Defined in:
- lib/inherited_templates/inherited_resources/name_helpers.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/inherited_templates/inherited_resources/name_helpers.rb', line 4 def self.included(base) base.class_eval do def resource_name resource_class.human_name end helper_method :resource_name def resources_name resource_name.pluralize end helper_method :resources_name end end |