Sha256: e964ced07890fa4629abce217ff43af4cf5ebbee1220fd31a6ad1fab4607e3c1

Contents?: true

Size: 612 Bytes

Versions: 25

Compression:

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

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

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


Version data entries

25 entries across 25 versions & 1 rubygems

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