diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-05-24 15:21:02 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-05-24 15:21:17 +0900 |
commit | bef95d372f9104a321cf17ac9f45316e9caac920 (patch) | |
tree | 6d80b7dd9318f2383b0808167c7ff3f9aadcb0d4 /activerecord/lib/active_record | |
parent | 525586417ef22928353efb4e670268ddd25cd94e (diff) | |
download | rails-bef95d372f9104a321cf17ac9f45316e9caac920.tar.gz rails-bef95d372f9104a321cf17ac9f45316e9caac920.tar.bz2 rails-bef95d372f9104a321cf17ac9f45316e9caac920.zip |
Fix a RuboCop offences using `rubocop -a`
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/integration.rb | 1 | ||||
-rw-r--r-- | activerecord/lib/active_record/tasks/database_tasks.rb | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/integration.rb b/activerecord/lib/active_record/integration.rb index 441237da1e..32362fa86f 100644 --- a/activerecord/lib/active_record/integration.rb +++ b/activerecord/lib/active_record/integration.rb @@ -110,7 +110,6 @@ module ActiveRecord end end - module ClassMethods # Defines your model's +to_param+ method to generate "pretty" URLs # using +method_name+, which can be any attribute or method that diff --git a/activerecord/lib/active_record/tasks/database_tasks.rb b/activerecord/lib/active_record/tasks/database_tasks.rb index c53dee43d7..ba686fc562 100644 --- a/activerecord/lib/active_record/tasks/database_tasks.rb +++ b/activerecord/lib/active_record/tasks/database_tasks.rb @@ -71,9 +71,9 @@ module ActiveRecord @tasks[pattern] = task end - register_task(/mysql/, 'ActiveRecord::Tasks::MySQLDatabaseTasks') - register_task(/postgresql/, 'ActiveRecord::Tasks::PostgreSQLDatabaseTasks') - register_task(/sqlite/, 'ActiveRecord::Tasks::SQLiteDatabaseTasks') + register_task(/mysql/, "ActiveRecord::Tasks::MySQLDatabaseTasks") + register_task(/postgresql/, "ActiveRecord::Tasks::PostgreSQLDatabaseTasks") + register_task(/sqlite/, "ActiveRecord::Tasks::SQLiteDatabaseTasks") def db_dir @db_dir ||= Rails.application.config.paths["db"].first |