gdpelican / retort

A reactions plugin for Discourse
MIT License
58 stars 38 forks source link

use before_action instead of before_filter #32

Closed daath closed 7 years ago

daath commented 7 years ago

When upgrading Discourse I get this error:

$ bundle exec rake multisite:migrate rake aborted! NoMethodError: undefined method `before_filter' for Retort::RetortsController:Class Did you mean? before_action

I have no clue, but it seems they upgraded rails and you're supposed to use before_action now?

daath commented 7 years ago

This is what I found, that seemed similar: https://github.com/activeadmin/activeadmin/pull/4875

daath commented 7 years ago

I see there's already a pull request that fixes this:

https://github.com/gdpelican/retort/pull/31

Could you please merge?