Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #16346 from JackDanger/remove_redundant_self_in_cl…

…ass_method_calls

Remove redundant `self.` in class method calls
  • Loading branch information...
commit 30194a5b475ea91f9709f64a08e6645cedbe4cb5 2 parents 7657a03 + cf62988
@rafaelfranca rafaelfranca authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 activerecord/lib/active_record/migration.rb
View
10 activerecord/lib/active_record/migration.rb
@@ -814,22 +814,22 @@ def up(migrations_paths, target_version = nil)
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 @@ def migrations(paths)
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
Please sign in to comment.
Something went wrong with that request. Please try again.