diff options
author | eileencodes <eileencodes@gmail.com> | 2018-02-21 16:34:39 -0500 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2018-02-21 16:34:39 -0500 |
commit | 63d530c5e68a8cf53603744789f53ccbc7ac1a0e (patch) | |
tree | 2b4edcdc3ac5c8d7c95b451a25d8111791c054bc /activerecord | |
parent | 16f279ebd474626577ced858e3626ac4535a33df (diff) | |
download | rails-63d530c5e68a8cf53603744789f53ccbc7ac1a0e.tar.gz rails-63d530c5e68a8cf53603744789f53ccbc7ac1a0e.tar.bz2 rails-63d530c5e68a8cf53603744789f53ccbc7ac1a0e.zip |
Call `YAML.load` correctly
We should call methods with `.method_name` not `::method_name`. Fix two
instances of `YAML::load` I found in favor of `YAML.load`.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 2e55713311..662a8bc720 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -229,7 +229,7 @@ db_namespace = namespace :db do base_dir = ActiveRecord::Tasks::DatabaseTasks.fixtures_path Dir["#{base_dir}/**/*.yml"].each do |file| - if data = YAML::load(ERB.new(IO.read(file)).result) + if data = YAML.load(ERB.new(IO.read(file)).result) data.each_key do |key| key_id = ActiveRecord::FixtureSet.identify(key) |