Sha256: 7a4a878524d226f02373d219a18d0beaa9e93cc482329cfbc183308990fc3ccb
Contents?: true
Size: 805 Bytes
Versions: 21
Compression:
Stored size: 805 Bytes
Contents
module RedmineCrm module Patches module ApplicationControllerPatch def self.included(base) # :nodoc: base.extend(ClassMethods) base.class_eval do unloadable # Send unloadable so it will not be unloaded in development end end module ClassMethods def before_action(*filters, &block) before_filter(*filters, &block) end def after_action(*filters, &block) after_filter(*filters, &block) end def skip_before_action(*filters, &block) skip_before_filter(*filters, &block) end end end end end unless ActionController::Base.methods.include?(:before_action) ActionController::Base.send( :include, RedmineCrm::Patches::ApplicationControllerPatch ) end
Version data entries
21 entries across 21 versions & 1 rubygems