Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

Commit

Permalink
Fix path in Rails 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nbudin committed Aug 27, 2010
1 parent 8edcd74 commit 1e0de87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devise_cas_authenticatable/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ def devise_cas_authenticatable(mapping, controllers)

def cas_authenticatable(routes, mapping)
routes.with_options(:controller => 'devise/cas_sessions', :name_prefix => nil) do |session|
session.connect(mapping.raw_path, :action => 'service', :conditions => {:method => :get})
session.connect('/', :action => 'service', :conditions => {:method => :get})
session.send(:"new_#{mapping.name}_session", mapping.path_names[:sign_in], :action => 'create', :conditions => {:method => :get})
session.send(:"#{mapping.name}_session", mapping.path_names[:sign_in], :action => 'create', :conditions => {:method => :post})
session.send(:"destroy_#{mapping.name}_session", mapping.path_names[:sign_out], :action => 'destroy', :conditions => { :method => :get })
end
end
end
end
end

0 comments on commit 1e0de87

Please sign in to comment.