Method: ResourcesController#include_actions

Defined in:
lib/resources_controller.rb

#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]
[View source] [View on GitHub]

502
503
504
505
# File 'lib/resources_controller.rb', line 502

def include_actions(mixin, options = {})
  mixin.extend(IncludeActions) unless mixin.respond_to?(:include_actions)
  mixin.include_actions(self, options)
end