Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/brianmario/interlock
Browse files Browse the repository at this point in the history
Conflicts:
	lib/interlock/active_record.rb
  • Loading branch information
Evan Weaver committed Nov 10, 2008
2 parents ab2d9fa + 29fe9f4 commit 7a15728
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/interlock/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,15 @@ def expire_interlock_keys

before_save :expire_interlock_keys
after_destroy :expire_interlock_keys

#
# Reload. Expires the cache and force reload from db.
#
def reload_with_interlock(options)
self.expire_interlock_keys
reload_without_interlock(options)
end
alias_method_chain :reload, :interlock

end
end

0 comments on commit 7a15728

Please sign in to comment.