diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-30 15:31:39 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-30 15:31:39 -0300 |
commit | 30194a5b475ea91f9709f64a08e6645cedbe4cb5 (patch) | |
tree | fcbba5c000e24f39aa90644e1c425f0cd88732c2 | |
parent | 7657a033d3bd19c900b6261ec42261590b7b8fbd (diff) | |
parent | cf629889bdc4b87e2829291a0c999289b073e0ed (diff) | |
download | rails-30194a5b475ea91f9709f64a08e6645cedbe4cb5.tar.gz rails-30194a5b475ea91f9709f64a08e6645cedbe4cb5.tar.bz2 rails-30194a5b475ea91f9709f64a08e6645cedbe4cb5.zip |
Merge pull request #16346 from JackDanger/remove_redundant_self_in_class_method_calls
Remove redundant `self.` in class method calls
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index e94b6ae9eb..7c4dad21a0 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -814,22 +814,22 @@ module ActiveRecord migrations = migrations(migrations_paths) migrations.select! { |m| yield m } if block_given? - self.new(:up, migrations, target_version).migrate + new(:up, migrations, target_version).migrate end def down(migrations_paths, target_version = nil, &block) migrations = migrations(migrations_paths) migrations.select! { |m| yield m } if block_given? - self.new(:down, migrations, target_version).migrate + new(:down, migrations, target_version).migrate end def run(direction, migrations_paths, target_version) - self.new(direction, migrations(migrations_paths), target_version).run + new(direction, migrations(migrations_paths), target_version).run end def open(migrations_paths) - self.new(:up, migrations(migrations_paths), nil) + new(:up, migrations(migrations_paths), nil) end def schema_migrations_table_name @@ -892,7 +892,7 @@ module ActiveRecord private def move(direction, migrations_paths, steps) - migrator = self.new(direction, migrations(migrations_paths)) + migrator = new(direction, migrations(migrations_paths)) start_index = migrator.migrations.index(migrator.current_migration) if start_index |