Skip to content

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

@toshitapandey

Description

@toshitapandey

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions