lib/devise/rails/routes.rb in devise-2.0.1 vs lib/devise/rails/routes.rb in devise-2.0.2
- old
+ new
@@ -7,16 +7,16 @@
def finalize_with_devise!
finalize_without_devise!
@devise_finalized ||= begin
if Devise.router_name.nil? && self != Rails.application.try(:routes)
- warn "[Devise] We have detected that you are using devise_for inside engine routes. " \
+ warn "[DEVISE] We have detected that you are using devise_for inside engine routes. " \
"In this case, you probably want to set Devise.router_name = MOUNT_POINT, where " \
"MOUNT_POINT is a symbol representing where this engine will be mounted at. For " \
- "now, Devise will default the mount point to :main_app."
+ "now Devise will default the mount point to :main_app. You can explicitly set it" \
+ " to :main_app as well in case you want to keep the current behavior."
end
- Devise.router_name ||= :main_app
Devise.configure_warden!
Devise.regenerate_helpers!
true
end
end