Class: Para::Component::ModelName

Inherits:
ActiveModel::Name
  • Object
show all
Defined in:
app/models/para/component/base.rb

Instance Method Summary collapse

Instance Method Details

#route_keyObject



90
91
92
# File 'app/models/para/component/base.rb', line 90

def route_key
  super.gsub(/(para_|component_|_component$)/, '')
end

#singular_route_keyObject



94
95
96
# File 'app/models/para/component/base.rb', line 94

def singular_route_key
  super.gsub(/(para_|component_|_component$)/, '')
end