rbCAS / casino-activerecord_authenticator

Provides mechanism to use ActiveRecord as an authenticator for CASino.
MIT License
19 stars 61 forks source link

Fix Single table inheritance problem #14

Closed moustafasamir closed 10 years ago

moustafasamir commented 10 years ago

This PR is to disable STI in CASINO model because when STI is used in the client application, the authenticated model that is created at runtime in CASINO expects to find the subclass but it doesn't find it.

Example: users table with a type column with the value "Customer" in any record Error: ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'Customer'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite CASino::ActiveRecordAuthenticator::User.inheritance_column to use another column for that information.)

So this PR is just to disable it.