Sha256: 310c97d81f1bc21ac1faa0f50ed8bd5ead8bdca52cfd043165de0e8971acbe14
Contents?: true
Size: 510 Bytes
Versions: 28
Compression:
Stored size: 510 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 end end end ::ActionController::Base.send :include, HydraHead::Controller
Version data entries
28 entries across 28 versions & 1 rubygems