lanrion / weixin_rails_middleware

微信集成 ruby weixin_rails_middleware for integration weixin.
MIT License
408 stars 107 forks source link

貌似 rails 5 开始不鼓励使用 before_filter 了 #49

Closed z-programer closed 8 years ago

z-programer commented 8 years ago

DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from <top (required)> at ... .../app/decorators/controllers/weixin_rails_middleware/weixin_controller_decorator.rb:5) DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from <top (required)> at ... .../app/decorators/controllers/weixin_rails_middleware/weixin_controller_decorator.rb:5) DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from <top (required)> at ... .../app/decorators/controllers/weixin_rails_middleware/weixin_controller_decorator.rb:5) DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from <top (required)> at ... .../app/decorators/controllers/weixin_rails_middleware/weixin_controller_decorator.rb:5)

lanrion commented 8 years ago

4就开始不再建议使用before_filter了,只不过是要兼容Rails 3而已。 现在Rails已经这么明显的WARNING了,那代码需要兼容一下了。

lanrion commented 8 years ago

有兴趣的话,可以发一个PR。