recipes/roles.rb in rails_apps_composer-3.0.12 vs recipes/roles.rb in rails_apps_composer-3.0.13

- old
+ new

@@ -1,10 +1,10 @@ # Application template recipe for the rails_apps_composer. Change the recipe here: # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/roles.rb stage_two do say_wizard "recipe stage two" - if prefer :authorization, 'pundit' + if (prefer :authorization, 'roles') || (prefer :authorization, 'pundit') if prefer :authentication, 'none' generate 'model User email:string' run 'bundle exec rake db:migrate' end generate 'migration AddRoleToUsers role:integer'