documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

DEPRECATION WARNING: append_before_filter is deprecated and will be removed in Rails 5.1. Use append_before_action instead. #272

Open tbtalbottjr opened 7 years ago

tbtalbottjr commented 7 years ago

Would be nice to update to append_before_action in jammit/controller.rb:96 to remove the notice in Rails 5 and be usable in 5.1.

andoke commented 4 years ago

I did this as a workaround in my initializers:

ActionController::Base.class_eval do
  class << self
    alias_method :append_before_filter, :append_before_action
  end
end

Until we move our project to Webpack.