Sha256: c7c662f08f9d3c0f618cc8e2f545541b7babf1e54d459d9d08155ab86cf893cf

Contents?: true

Size: 581 Bytes

Versions: 13

Compression:

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

    def layout_name
      puts " ***** CALLING LAYOUT_NAME ****"
      'application'
    end
  end
end

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


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hydra-head-4.1.3 lib/hydra-head/controller.rb
hydra-head-4.1.2 lib/hydra-head/controller.rb
hydra-head-4.1.1 lib/hydra-head/controller.rb
hydra-head-4.1.0 lib/hydra-head/controller.rb
hydra-head-4.0.3 lib/hydra-head/controller.rb
hydra-head-4.0.2 lib/hydra-head/controller.rb
hydra-head-4.0.1 lib/hydra-head/controller.rb
hydra-head-4.0.0 lib/hydra-head/controller.rb
hydra-head-4.0.0.rc6 lib/hydra-head/controller.rb
hydra-head-4.0.0.rc5 lib/hydra-head/controller.rb
hydra-head-4.0.0.rc4 lib/hydra-head/controller.rb
hydra-head-4.0.0.rc3 lib/hydra-head/controller.rb
hydra-head-4.0.0.rc2 lib/hydra-head/controller.rb