Sha256: 7de089920790fb93846726828806f6c8fff9214dc6972bb74e1d4b87e09ea324

Contents?: true

Size: 478 Bytes

Versions: 10

Compression:

Stored size: 478 Bytes

Contents

require 'action_controller'
require 'responders'

module Adva
  class Responder < ActionController::Responder
    autoload :Redirect, 'adva/responder/redirect'

    module Base
      include Adva::Responder::Redirect
      include Responders::FlashResponder
      include Responders::HttpCacheResponder
    end
    include Base

    delegate :params, :controller_path, :resource, :resources, :to => :controller

    def action
      controller.params[:action]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
adva-core-0.0.14 lib/adva/responder.rb
adva-core-0.0.13 lib/adva/responder.rb
adva-core-0.0.9 lib/adva/responder.rb
adva-core-0.0.8 lib/adva/responder.rb
adva-core-0.0.7 lib/adva/responder.rb
adva-core-0.0.6 lib/adva/responder.rb
adva-core-0.0.5 lib/adva/responder.rb
adva-core-0.0.4 lib/adva/responder.rb
adva-core-0.0.2 lib/adva/responder.rb
adva-core-0.0.1 lib/adva/responder.rb