Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cache Key with updated_at #81
I realized using
Here is the SQL that seems to be updating the user on refresh
Is there any way to remove the
1 similar comment
After reading this post http://blog.bigbinary.com/2009/01/21/override-automatic-timestamp-in-activerecord-rails.html I added the following code to my Authlogic authentic model.
Please note that this code works for me in Rails 2, haven't tested it in later versions.
private def should_record_timestamps? changed_keys = self.changes.keys - ["last_request_at", "perishable_token", "updated_at", "created_at"] changed_keys.present? && super end
I also overwrite my