Class: Lotus::Routing::Resources::CollectionAction Private

Inherits:
Lotus::Routing::Resource::CollectionAction show all
Defined in:
lib/lotus/routing/resources/action.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Collection action It implements #collection within a #resources block.

See Also:

Since:

  • 0.1.0

Constant Summary

Constants inherited from Lotus::Routing::Resource::Action

Lotus::Routing::Resource::Action::NESTED_ROUTES_SEPARATOR

Instance Method Summary collapse

Methods inherited from Lotus::Routing::Resource::CollectionAction

#generate

Methods inherited from Lotus::Routing::Resource::Action

generate, #generate, #initialize, #namespace, #resource_name

Constructor Details

This class inherits a constructor from Lotus::Routing::Resource::Action

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Lotus::Routing::Resource::CollectionAction

Instance Method Details

#as(action_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



52
53
54
# File 'lib/lotus/routing/resources/action.rb', line 52

def as(action_name)
  Lotus::Utils::String.new(super(action_name)).pluralize
end