class ADSL::Extract::Rails::ActionRunner

Attributes

action[R]
controller[R]

Public Class Methods

new(controller, action) click to toggle source
# File lib/adsl/extract/rails/action_runner.rb, line 11
def initialize(controller, action)
  @controller = controller
  @action = action
end

Public Instance Methods

callbacks() click to toggle source
# File lib/adsl/extract/rails/action_runner.rb, line 16
def callbacks
  @controller._process_action_callbacks
end
root_paths_to_stmts(root_paths) click to toggle source
# File lib/adsl/extract/rails/action_runner.rb, line 20
def root_paths_to_stmts(root_paths)
  return root_paths.first.statements if root_paths.length == 1
  [ASTEither.new(:blocks => root_paths)]
end
run_action() click to toggle source
# File lib/adsl/extract/rails/action_runner.rb, line 25
def run_action


  action_root_paths = action_adsl_ast.blocks.map{ |block| [block, false] }
end
run_after_filter(higher_root_paths) click to toggle source
# File lib/adsl/extract/rails/action_runner.rb, line 41
def run_after_filter(higher_root_paths)
  filter_root_paths =

  higher_root_paths.each do |block, chain_halted|
    block += root_paths_to_stmts(filter_root_paths) unless chain_halted
  end

  higher_root_paths
end
run_around_filter() click to toggle source
# File lib/adsl/extract/rails/action_runner.rb, line 51
def run_around_filter

end
run_before_filter(higher_root_paths) click to toggle source
# File lib/adsl/extract/rails/action_runner.rb, line 31
def run_before_filter(higher_root_paths)
  filter_root_paths = 

  filter_root_paths.each do |block, chain_halted|
    block += root_paths_to_stmts(higher_root_paths) unless chain_halted
  end

  filter_root_paths
end