Browse files

Removing CachedFind one more time to see if optimistic locking is the…

… culprit
  • Loading branch information...
1 parent 93b95cb commit 36c608788ab785e6b5954037ec7545b4648cf795 @winton committed Nov 8, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/a_b/model/variant.rb
View
6 lib/a_b/model/variant.rb
@@ -44,11 +44,9 @@ def self.record(options)
ids = data['c'] + data['v']
ids = ids.compact.uniq
- variants = ids.collect do |id|
- Variant.cached_find(id, :include => :site)
- end
+ variants = Variant.find_all_by_id(ids, :include => :site)
- env = Env.cached_find(:first, :conditions => {
+ env = Env.find(:first, :conditions => {
:name => env,
:user_id => variants[0].user_id
})

0 comments on commit 36c6087

Please sign in to comment.