rubycas / rubycas-client

Ruby client for Yale's Central Authentication Service protocol -- an open source enterprise single sign on system for web applications.
http://code.google.com/p/rubycas-client/
Other
332 stars 217 forks source link

NoMethodError: `initialize': undefined method `session_class=' for ActiveRecord::SessionStore:Module #96

Open toshitapandey opened 5 years ago

toshitapandey commented 5 years ago

I recently upgraded from Rails 3.2 to Rails 4. I am getting following error now:

/usr/share/rvm/gems/ruby-2.3.7@m3/gems/rubycas-client-2.3.10.rc1/lib/casclient/tickets/storage/active_record_ticket_store.rb:20:in 'initialize': undefined method 'session_class=' for ActiveRecord::SessionStore:Module (NoMethodError)

When I looked a bit into it, I found that for rails/activerecord-session_store, method of setting session has changed: Active record session store commit

But, this gem hasn't updated it. The gem still uses following code: active record ticket store and storage

There is another gem for rubycas-client which uses something like this: mdsol | rubycas-client's storage

As per #78, some folks can use it and others can not. Can someone confirm if this is compatible with Rails 4 (specifically Rails 4.0.8) and if yes, what steps are required to fix thee issue?

datalatics-official commented 2 years ago

I hope this will resolve your issue: https://github.com/rails/activerecord-session_store/commit/4ecd3f741c746758a2de88fcbcc8729c8292cdab#lib/action_dispatch/session/active_record_store.rb