Class: RestfulController::Base
- Inherits:
-
Object
- Object
- RestfulController::Base
- Defined in:
- lib/restful_controller/base.rb
Constant Summary collapse
- ACTIONS =
[:index, :show, :edit, :update, :create, :destroy, :new]
Class Method Summary collapse
Class Method Details
.inject(base, actions = []) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/restful_controller/base.rb', line 5 def self.inject(base, actions = []) actions_to_include = actions_to_include(actions) base.class_eval do include Helpers include Filters actions_to_include.each do |action| include "RestfulController::Actions::#{action.capitalize}".constantize end end end |