module ActiveResponse::Controller::Core::ClassMethods
Public Instance Methods
active_response(*actions)
click to toggle source
# File lib/active_response/controller/core.rb, line 13 def active_response(*actions) active_response(:create, :destroy, :edit, :index, :new, :show, :update) if actions.include?(:crud) actions.without(:crud).each { |action| define_active_response_action(action) } end
Private Instance Methods
define_active_response_action(action)
click to toggle source
# File lib/active_response/controller/core.rb, line 20 def define_active_response_action(action) define_method action do active_response_block do execute_action end end end