Sha256: 96e5319769ed74a11261ef6aadb25ad9e32999910732458757bed885e60dc169

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

module Puffer
  module Extensions
    module ActionController
      module Base
        extend ActiveSupport::Concern

        included do
          delegate :puffer?, :to => 'self.class'
          helper_method :puffer?
        end

        module ClassMethods
          def puffer?
            false
          end

          def pufferize!
            include Puffer::Controller::Mutate
            include Puffer::Controller::Dsl
            include Puffer::Controller::Config
          end
        end

      end
    end
  end
end

ActionController::Base.send :include, Puffer::Extensions::ActionController::Base

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.0.28 lib/puffer/extensions/controller.rb