espinita icon indicating copy to clipboard operation
espinita copied to clipboard

update deprecated call

Open rodrigomanhaes opened this issue 8 years ago • 3 comments

In Rails 5, an application using espinita shows the warning below:

DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. 
Use before_action instead.

rodrigomanhaes avatar Aug 15 '16 12:08 rodrigomanhaes

It would be nice if this PR checks Rails.version , if it's >4.0.0 then use before_action , else before_filter.

michelson avatar Aug 15 '16 13:08 michelson

Any update on this?

dtengeri avatar Feb 02 '17 10:02 dtengeri

nope, this PR will not work on Rails versions < 5 , so we can't merge this PR as it is right now. When I have some time I could fix this, but @dtengeri if you need the feature you can always fork and submit a PR.

cheers!

michelson avatar Feb 03 '17 14:02 michelson