lib/auth/rails/routes.rb in wordjelly-auth-1.2.6 vs lib/auth/rails/routes.rb in wordjelly-auth-1.2.8
- old
+ new
@@ -59,11 +59,13 @@
collection do
get 'authenticated_user_search', :action => 'authenticated_user_search', :as => "authenticated_user"
end
end
- resources :bar_codes, :controller => "auth/shopping/bar_codes"
+
+
+ resources :bar_codes, :controller => "auth/shopping/bar_codes", :only => [:show, :index, :new]
## this controller may need to be changed, actually will have to be changed for every single thing.
resources :assemblies, :controller => Auth.configuration.assembly_controller
resources :stages, :controller => Auth.configuration.stage_controller
@@ -102,14 +104,14 @@
resources :clients, :controller => "auth/clients", :as => "auth_clients"
resources :endpoints, :controller => Auth.configuration.endpoint_controller
- resources :profiles, :controller => "auth/profiles" do
+ resources :profiles, :controller => Auth.configuration.profiles_controller do
collection do
## :resource will be something like users.
- post ':resource/set_proxy_user', :action => 'set_proxy_resource', :as => "set_proxy_resource"
+ put ':resource/set_proxy_user', :action => 'set_proxy_resource', :as => "set_proxy_resource"
get 'credential_exists', :action => 'credential_exists'
post ':resource/get_user_id', :action => 'get_user_id'
put ':resource/update', :action => 'update'
end
@@ -159,30 +161,24 @@
end
end
collection do
if model == "cart_item"
post 'create_multiple', :action => 'create_multiple'
- post 'create_package_items', :action => 'create_package_items'
+ post 'create_many_items', :action => 'create_many_items'
end
end
end
##A ROUTE HAS BEEN ADDED IN THE DAUGHTER APP FOR THE POST -> TO THE PAYMENTS_UPDATE FOR PAYUMONEY.
##refer payumoney_controller_concern.rb
end
end
-
-
end
-
end
-
end
-
-
- app_route_resources.each do |resource,opts|
+ app_route_resources.each do |resource,opts|
#puts "resource is : #{resource}"
#puts "opts are: #{opts}"
# ensure objects exist to simplify attr checks
opts[:controllers] ||= {}