Skip to content

Commit

Permalink
Remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Vishnoi committed Jun 11, 2014
1 parent a5ab38c commit 75e3464
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions activerecord/lib/active_record/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,6 @@ def initialize(connection, name, class_name, path, config = ActiveRecord::Base)
@config = config
@model_class = nil

if class_name.is_a?(String)
ActiveSupport::Deprecation.warn("The ability to pass in strings as a class name to `FixtureSet.new` will be removed in Rails 4.2. Use the class itself instead.")
end

if class_name.is_a?(Class) # TODO: Should be an AR::Base type class, or any?
@model_class = class_name
else
Expand Down

0 comments on commit 75e3464

Please sign in to comment.