Class: Azeroth::RoutesBuilder Private
- Inherits:
-
Sinclair::Model
- Object
- Sinclair::Model
- Azeroth::RoutesBuilder
- Defined in:
- lib/azeroth/routes_builder.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.
Builder resposible for adding routes methods to the controller
Instance Method Summary collapse
-
#append ⇒ Array<Sinclair::MethodDefinition>
private
Append the routes methods to be built.
- #initialize(model: , builder: , options: ) ⇒ RoutesBuilder constructor
Constructor Details
#initialize(model: , builder: , options: ) ⇒ RoutesBuilder
|
# File 'lib/azeroth/routes_builder.rb', line 11
|
Instance Method Details
#append ⇒ Array<Sinclair::MethodDefinition>
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.
Append the routes methods to be built
20 21 22 23 24 |
# File 'lib/azeroth/routes_builder.rb', line 20 def append .actions.each do |route| add_method(route, &route_code(route)) end end |