recipes/routes.rb in rails_apps_composer-2.4.0 vs recipes/routes.rb in rails_apps_composer-2.4.1

- old
+ new

@@ -9,10 +9,14 @@ gsub_file 'config/routes.rb', /get \"home\/index\"/, 'root :to => "home#index"' end ### USER_ACCOUNTS ### if ['users_app','admin_app'].include? prefs[:starter_app] ## DEVISE - copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/' if prefer :authentication, 'devise' + if prefer :authentication, 'devise' + copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/' + ## Rails 4.0 doesn't allow two 'root' routes + gsub_file 'config/routes.rb', /authenticated :user do\n.*\n.*\n /, '' if Rails::VERSION::MAJOR.to_s == "4" + end ## OMNIAUTH copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/' if prefer :authentication, 'omniauth' end ### SUBDOMAINS ### copy_from_repo 'lib/subdomain.rb', :repo => 'https://raw.github.com/RailsApps/rails3-subdomains/master/' if prefer :starter_app, 'subdomains_app'