Module: Kitestrings::Menu::Model::ClassMethods
- Defined in:
- lib/kitestrings/menu/model.rb
Instance Method Summary collapse
-
#menu_display_name ⇒ Object
Get the display name of the collection for this class (index action).
Instance Method Details
#menu_display_name ⇒ Object
Get the display name of the collection for this class (index action). This uses ActiveModel::Naming to fetch the plural name of the resource class.
25 26 27 |
# File 'lib/kitestrings/menu/model.rb', line 25 def self.model_name.human.pluralize.titlecase end |