class Spine::Actions::Action

Attributes

env[R]
request[R]
response[R]

Public Class Methods

call(env) click to toggle source
# File lib/spine/actions/action.rb, line 17
def self.call(env)
  handler = new(env)

  process_filters(handler, before_filters_with_parents)
  return handler.response.finish if handler.responded?

  handler.action
  process_filters(handler, after_filters_with_parents)

  raise StandardError.new('No response defined') unless handler.responded?
  handler.response.finish
end
new(env) click to toggle source
# File lib/spine/actions/action.rb, line 11
def initialize(env)
  @env = env
  @request = Rack::Request.new(env)
  @response = Rack::Response.new
end