Module: HumanError::RescuableResource::ClassMethods
- Defined in:
- lib/human_error/rescuable_resource.rb
Instance Method Summary collapse
Instance Method Details
#plural_resource_name ⇒ Object
4 5 6 7 8 9 |
# File 'lib/human_error/rescuable_resource.rb', line 4 def plural_resource_name name[/(\w+)Controller\z/, 1]. underscore. pluralize. downcase end |
#singular_resource_name ⇒ Object
11 12 13 14 15 16 |
# File 'lib/human_error/rescuable_resource.rb', line 11 def singular_resource_name name[/(\w+)Controller\z/, 1]. underscore. singularize. downcase end |