Skip to content
Browse files

ensure @model_class is initialized

  • Loading branch information...
1 parent b77781c commit 7a05455a38f325760ccaaa96d630e73d46cc2d5f @tenderlove tenderlove committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/lib/active_record/fixtures.rb
View
1 activerecord/lib/active_record/fixtures.rb
@@ -532,6 +532,7 @@ def initialize(connection, name, class_name, path, config = ActiveRecord::Base)
@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.")

0 comments on commit 7a05455

Please sign in to comment.
Something went wrong with that request. Please try again.