recipes/routes.rb in rails_apps_composer-2.4.6 vs recipes/routes.rb in rails_apps_composer-2.4.7
- old
+ new
@@ -17,10 +17,13 @@
gsub_file 'config/routes.rb', /authenticated :user do\n.*\n.*\n /, '' if rails_4?
## accommodate strong parameters in Rails 4
gsub_file 'config/routes.rb', /devise_for :users/, 'devise_for :users, :controllers => {:registrations => "registrations"}' if rails_4?
end
## OMNIAUTH
- copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/' if prefer :authentication, 'omniauth'
+ if prefer :authentication, 'omniauth'
+ copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/'
+ gsub_file 'config/routes.rb', /match/, 'get' if rails_4?
+ end
end
### SUBDOMAINS ###
copy_from_repo 'lib/subdomain.rb', :repo => 'https://raw.github.com/RailsApps/rails3-subdomains/master/' if prefer :starter_app, 'subdomains_app'
copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-subdomains/master/' if prefer :starter_app, 'subdomains_app'
### CORRECT APPLICATION NAME ###