Module: Swamp::Action

Defined in:
lib/swamp/rails_actions/action.rb,
lib/swamp/rails_actions/action/flash.rb,
lib/swamp/rails_actions/action/routes.rb,
lib/swamp/rails_actions/action/parameters.rb

Defined Under Namespace

Modules: ClassMethods, Flash, Parameters, Routes Classes: Result

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
14
# File 'lib/swamp/rails_actions/action.rb', line 9

def self.included(base)
  base.extend ClassMethods
  base.include Swamp::Action::Parameters
  base.include Swamp::Action::Routes
  base.include Swamp::Action::Flash
end

Instance Method Details

#_callObject



66
# File 'lib/swamp/rails_actions/action.rb', line 66

def _call; end

#call(args = Hash[]) ⇒ Object



56
57
58
59
60
61
62
63
64
# File 'lib/swamp/rails_actions/action.rb', line 56

def call(args = Hash[])
  prepare(args)

  catch :done do
    _call
  end

  finalize(args)
end