espinita
espinita copied to clipboard
update deprecated call
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.
It would be nice if this PR checks Rails.version , if it's >4.0.0 then use before_action , else before_filter.
Any update on this?
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!