Permalink
Browse files

Merge pull request #490 from mauro-oto/use-right-activerecord-base-mo…

…dule

Use the right ActiveRecord::Base module.
2 parents 9755bc5 + b56783f commit 40e084e9a903fdae186ad4196bb5b306498a5096 @etagwerker etagwerker committed on GitHub Jun 2, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/database_cleaner/active_record/base.rb
@@ -68,7 +68,7 @@ def self.migration_table_name
def self.exclusion_condition(column_name)
result = " #{column_name} <> '#{::DatabaseCleaner::ActiveRecord::Base.migration_table_name}' "
if ::ActiveRecord::VERSION::MAJOR >= 5
- result += " AND #{column_name} <> '#{ActiveRecord::Base.internal_metadata_table_name}' "
+ result += " AND #{column_name} <> '#{::ActiveRecord::Base.internal_metadata_table_name}' "
end
result
end

0 comments on commit 40e084e

Please sign in to comment.