diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-06 10:32:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-06 10:32:50 -0700 |
commit | 7a05455a38f325760ccaaa96d630e73d46cc2d5f (patch) | |
tree | c085782a52eb6d6943d5db2ebee75ed227e46e54 /activerecord/lib | |
parent | b77781c012ebb60bfeee114aef6597ab8d3d3016 (diff) | |
download | rails-7a05455a38f325760ccaaa96d630e73d46cc2d5f.tar.gz rails-7a05455a38f325760ccaaa96d630e73d46cc2d5f.tar.bz2 rails-7a05455a38f325760ccaaa96d630e73d46cc2d5f.zip |
ensure @model_class is initialized
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index c8de310b9c..468c99ec68 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -532,6 +532,7 @@ module ActiveRecord @name = name @path = path @config = config + @model_class = nil if class_name.is_a?(String) ActiveSupport::Deprecation.warn("The ability to pass in strings as a class name will be removed in Rails 4.2, consider using the class itself instead.") |