Module | Authlogic::Session::PriorityRecord |
In: |
lib/authlogic/session/priority_record.rb
|
The point of this module is to avoid the StaleObjectError raised when lock_version is implemented in ActiveRecord. We accomplish this by using a "priority record". Meaning this record is used if possible, it gets priority. This way we don‘t save a record behind the scenes thus making an object being used stale.