From a5b61269f3bb08ba270e15c043dc64329f1e10d7 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 11 Feb 2011 17:02:53 -0800 Subject: [PATCH] Fixtures class constantizes this value, so no need to do it twice --- activerecord/lib/active_record/fixtures.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 56bfd2aff4..6eeb012aa1 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -788,9 +788,9 @@ class Fixture #:nodoc: attr_reader :model_class def initialize(fixture, model_class, connection = ActiveRecord::Base.connection) - @connection = connection - @fixture = fixture - @model_class = model_class.is_a?(Class) ? model_class : model_class.constantize rescue nil + @connection = connection + @fixture = fixture + @model_class = model_class end def class_name