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
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?

Inline image 1

Thanks a lot.

Regards.

Larry
image.png

Dan Sterrett

unread,
Nov 14, 2012, 4:53:08 PM11/14/12
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
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'
end
Reply all
Reply to author
Forward
0 new messages