config/routes.rb in iugusdk-1.0.0.alpha.2 vs config/routes.rb in iugusdk-1.0.0.alpha.3
- old
+ new
@@ -31,10 +31,11 @@
get "settings/profile" => "iugu/profile#index", :as => "profile_settings"
get "settings/profile/destroy" => "iugu/profile#destroy", :as => "profile_destroy"
get "settings/profile/cancel_destruction" => "iugu/profile#cancel_destruction", :as => "profile_cancel_destruction"
post "settings/profile" => "iugu/profile#update", :as => "profile_update"
get "settings/profile/social/destroy" => "iugu/profile#destroy_social", :as => "social_destroy"
+ post 'become_user' => 'iugu/profile#become_user', :as => 'become_user'
get '/settings/account/:account_id/invite' => 'iugu/invitations#new', :as => 'new_invite'
post '/settings/account/:account_id/invite' => 'iugu/invitations#create', :as => 'create_invite'
get '/accept_invite/:invitation_token' => 'iugu/invitations#edit', :as => 'edit_invite'
post '/accept_invite' => 'iugu/invitations#update', :as => 'update_invite'
@@ -52,10 +53,10 @@
get 'login' => 'iugu/sessions#new', :as => 'new_user_session'
post 'login' => 'iugu/sessions#create', :as => 'user_session'
delete 'logout' => 'iugu/sessions#destroy', :as => 'destroy_user_session'
# Registration Stuff
- unless IuguSDK::enable_social_only
+ if IuguSDK::enable_signup_form
get 'signup' => 'iugu/registrations#new', :as => 'new_user_registration'
post 'signup' => 'iugu/registrations#create', :as => 'user_registration'
get 'cancel_signup' => 'iugu/registrations#cancel', :as => 'cancel_user_registration'
end
post 'try_first' => 'iugu/registrations#try_first', :as => 'try_first'