1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use Module#include instead of send :include, since now is a public method [ci skip]

ref https://bugs.ruby-lang.org/issues/8846
This commit is contained in:
robertomiranda 2015-01-31 22:18:54 -05:00
parent 70ac072976
commit c46c1c1599
2 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@ module ActiveRecord
# Digest::SHA2.hexdigest(File.read(Rails.root.join('test/fixtures', path)))
# end
# end
# ActiveRecord::FixtureSet.context_class.send :include, FixtureFileHelpers
# ActiveRecord::FixtureSet.context_class.include FixtureFileHelpers
#
# - use the helper method in a fixture
# photo:
@ -522,7 +522,7 @@ module ActiveRecord
update_all_loaded_fixtures fixtures_map
connection.transaction(:requires_new => true) do
deleted_tables = Set.new
deleted_tables = Set.new
fixture_sets.each do |fs|
conn = fs.model_class.respond_to?(:connection) ? fs.model_class.connection : connection
table_rows = fs.table_rows

View file

@ -534,7 +534,7 @@ module FixtureFileHelpers
Digest::SHA2.hexdigest(File.read(Rails.root.join('test/fixtures', path)))
end
end
ActiveRecord::FixtureSet.context_class.send :include, FixtureFileHelpers
ActiveRecord::FixtureSet.context_class.include FixtureFileHelpers
```
### I18n enforcing available locales