Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ensure @model_class is initialized

  • Loading branch information...
commit 7a05455a38f325760ccaaa96d630e73d46cc2d5f 1 parent b77781c
@tenderlove tenderlove authored
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.")
Please sign in to comment.
Something went wrong with that request. Please try again.