Class: Para::Component::ModelName
- Inherits:
-
ActiveModel::Name
- Object
- ActiveModel::Name
- Para::Component::ModelName
- Defined in:
- app/models/para/component/base.rb
Instance Method Summary collapse
Instance Method Details
#route_key ⇒ Object
72 73 74 |
# File 'app/models/para/component/base.rb', line 72 def route_key super.gsub(/(para_|component_|_component$)/, '') end |
#singular_route_key ⇒ Object
76 77 78 |
# File 'app/models/para/component/base.rb', line 76 def singular_route_key super.gsub(/(para_|component_|_component$)/, '') end |