config/routes.rb in switch_user-0.4.1 vs config/routes.rb in switch_user-0.5.0
- old
+ new
@@ -1,3 +1,5 @@
-Rails.application.routes.draw do
- match 'switch_user' => 'switch_user#set_current_user'
+if Rails.version =~ /^3/
+ Rails.application.routes.draw do
+ match 'switch_user' => 'switch_user#set_current_user'
+ end
end
\ No newline at end of file