Method: ResourcesController#include_actions
- Defined in:
- lib/resources_controller.rb
permalink #include_actions(mixin, options = {}) ⇒ Object
Include the specified module, optionally specifying which public methods to include, for example:
include_actions ActionMixin, :only => :index
include_actions ActionMixin, :except => [:create, :new]
502 503 504 505 |
# File 'lib/resources_controller.rb', line 502 def include_actions(mixin, = {}) mixin.extend(IncludeActions) unless mixin.respond_to?(:include_actions) mixin.include_actions(self, ) end |