Sha256: 37531546a6536e0f6a079e04179ccf9851aa8d782d90f14002adea63775176d0
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
module Redmineup 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, Redmineup::Patches::ApplicationControllerPatch ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redmineup-1.0.2 | lib/redmineup/compatibility/application_controller_patch.rb |