uninitialized constant CASServer::Model::Base when logout
58 views
Skip to first unread message
Larry Zhao
unread,
Nov 13, 2012, 3:44:14 AM11/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubycas...@googlegroups.com
Dear guys,
I encountered this error when calling '/logout', see the following screenshot. And I found there's no Base defined, in 'lib\casserver\views\model.rb', how could I fix that?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubycas...@googlegroups.com
I get the same error. Did you figure out a fix?
Thanks,
Dan
Dan Sterrett
unread,
Nov 15, 2012, 8:46:47 AM11/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubycas...@googlegroups.com
I was able to fix it by adding the following code to the 'lib\casserver\views\model.rb' file inside the CASServer::Model module. I think it was inadvertently deleted in a previous commit. So far it fixed the problem, and I haven't seen any negative side effects.
Here's the code:
class Base < ActiveRecord::Base
self.abstract_class = true if ActiveRecord::VERSION::STRING >= '3.2'