Sha256: 95d24aebdbe0ba1b86d1af855fa1611481dfd94bcd466772b0daaad0f8d6a4ec

Contents?: true

Size: 484 Bytes

Versions: 6

Compression:

Stored size: 484 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

    def method_for_before_filtering
      #puts "Filtering before" 
    end

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

#TODO this seems bad
::ActionController::Base.send :include, HydraHead::Controller


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hydra-head-4.0.0 lib/application_controller.rb
hydra-head-4.0.0.rc6 lib/application_controller.rb
hydra-head-4.0.0.rc5 lib/application_controller.rb
hydra-head-4.0.0.rc4 lib/application_controller.rb
hydra-head-4.0.0.rc3 lib/application_controller.rb
hydra-head-4.0.0.rc2 lib/application_controller.rb