Correct tab indention
git-svn-id: file:///home/svn/framework3/trunk@7642 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
bfe2cc0c53
commit
05733b9d8d
|
@ -25,15 +25,15 @@ module DBSave
|
|||
def self.included(mod)
|
||||
class << mod
|
||||
def find(*args)
|
||||
ActiveRecord::Base.connection_pool.clear_stale_cached_connections!
|
||||
Lock.mutex.synchronize do
|
||||
ActiveRecord::Base.connection_pool.clear_stale_cached_connections!
|
||||
Lock.mutex.synchronize do
|
||||
super(*args)
|
||||
end
|
||||
end
|
||||
|
||||
def save(*args)
|
||||
ActiveRecord::Base.connection_pool.clear_stale_cached_connections!
|
||||
Lock.mutex.synchronize do
|
||||
ActiveRecord::Base.connection_pool.clear_stale_cached_connections!
|
||||
Lock.mutex.synchronize do
|
||||
super(*args)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue