diff options
author | Jack Danger Canty <github@jackcanty.com> | 2014-07-30 11:29:12 -0700 |
---|---|---|
committer | Jack Danger Canty <github@jackcanty.com> | 2014-07-30 11:29:12 -0700 |
commit | cf629889bdc4b87e2829291a0c999289b073e0ed (patch) | |
tree | 93379ea8aa675447e78770b96f748e648a64a9ea /activerecord/lib | |
parent | 74c31ac5fe44b2e2b46e660932e6ca266b11fd58 (diff) | |
download | rails-cf629889bdc4b87e2829291a0c999289b073e0ed.tar.gz rails-cf629889bdc4b87e2829291a0c999289b073e0ed.tar.bz2 rails-cf629889bdc4b87e2829291a0c999289b073e0ed.zip |
Remove redundant `self.` in class method calls
These are the only instances of this in the whole code base.
Diffstat (limited to 'activerecord/lib')
-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 |