milia icon indicating copy to clipboard operation
milia copied to clipboard

Cannot install properly on Rails 5.2.1, uses depreciated "before_filter"

Open casbross opened this issue 6 years ago • 3 comments

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.

casbross avatar Sep 27 '18 20:09 casbross

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.

hermanomark avatar Oct 06 '18 10:10 hermanomark

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!

hermanomark avatar Oct 06 '18 10:10 hermanomark

I edited the file after doing this install, but that should work as well.

casbross avatar Oct 09 '18 13:10 casbross