milia
milia copied to clipboard
Cannot install properly on Rails 5.2.1, uses depreciated "before_filter"
This creates a devise_permitted_parameters.rb
file that uses the depreciated before_filter
action. I had to edit the file to be before_action
instead of before_filter
for the installation to work.
Have you make it work?? I did the same thing added this line of code in application_controller.rb
before_action :authenticate_tenant!
and then change devise_permitted_parameters.rb to before_action.
when I run the
rails g milia:install --org_email='
It forces the devise_permitted_parameters.rb to use before_filter again and returns the error.
I've made it work lol, when running rails g milia:install --org_email='' it will ask you to overwrite devise_permitted_paramters.rb don't type Y instead type N to not overwrite the before_action in devise_permitted_paramters.rb
Hope this helps someone!
I edited the file after doing this install, but that should work as well.