Permalink
Browse files

Merge pull request #140 from mitfik/voke-patch

CASServer::Model::Base does not exist anymore
  • Loading branch information...
2 parents d35b17f + ea9b452 commit 03e1bd8e65c2eba8d42d2de8f160ef1438149006 @mitfik mitfik committed Dec 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/casserver/server.rb
View
@@ -535,7 +535,7 @@ def self.init_database!
end
pgts = CASServer::Model::ProxyGrantingTicket.find(:all,
- :conditions => [CASServer::Model::Base.connection.quote_table_name(CASServer::Model::ServiceTicket.table_name)+".username = ?", tgt.username],
+ :conditions => [CASServer::Model::ServiceTicket.quoted_table_name+".username = ?", tgt.username],
:include => :service_ticket)
pgts.each do |pgt|
$LOG.debug("Deleting Proxy-Granting Ticket '#{pgt}' for user '#{pgt.service_ticket.username}'")

0 comments on commit 03e1bd8

Please sign in to comment.