Sha256: 310c97d81f1bc21ac1faa0f50ed8bd5ead8bdca52cfd043165de0e8971acbe14

Contents?: true

Size: 510 Bytes

Versions: 28

Compression:

Stored size: 510 Bytes

Contents

module HydraHead
  ## Define ControllerMethods
  module Controller
  	## this one manages the usual self.included, klass_eval stuff
    extend ActiveSupport::Concern

    included do
      before_filter :method_for_before_filtering
    end

    module InstanceMethods
      def method_for_before_filtering
        #puts "Filtering before" 
      end

      def method_not_a_filter
        puts "not used as a filter"
      end
    end
  end
end

::ActionController::Base.send :include, HydraHead::Controller


Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hydra-head-3.3.0 lib/application_controller.rb
hydra-head-3.2.2 lib/application_controller.rb
hydra-head-3.2.1 lib/application_controller.rb
hydra-head-3.2.0 lib/application_controller.rb
hydra-head-3.2.0.pre3 lib/application_controller.rb
hydra-head-3.2.0.pre2 lib/application_controller.rb
hydra-head-3.2.0.pre1 lib/application_controller.rb
hydra-head-3.1.5 lib/application_controller.rb
hydra-head-3.1.4 lib/application_controller.rb
hydra-head-3.1.3 lib/application_controller.rb
hydra-head-3.1.2 lib/application_controller.rb
hydra-head-3.1.1 lib/application_controller.rb
hydra-head-3.1.0 lib/application_controller.rb
hydra-head-3.1.0.rc2 lib/application_controller.rb
hydra-head-3.1.0.rc1 lib/application_controller.rb
hydra-head-3.1.0.pre5 lib/application_controller.rb
hydra-head-3.1.0.pre4 lib/application_controller.rb
hydra-head-3.1.0.pre3 lib/application_controller.rb
hydra-head-3.0.1 lib/application_controller.rb
hydra-head-3.1.0.pre2 lib/application_controller.rb