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