class TestSeeds::SeedFixture
Public Instance Methods
find()
click to toggle source
Override find to call find with exclusive scope. Shouldn't fixtures do that already?
# File lib/test_seeds.rb, line 10 def find if model_class model_class.send(:with_exclusive_scope) do model_class.find(@fixture[model_class.primary_key]) end else raise FixtureClassNotFound, "No class attached to find." end end