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