diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-05-31 20:59:23 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2012-06-01 14:46:21 +0900 |
commit | c8882c1a4057179c272ba17c3c63efb47ca05f31 (patch) | |
tree | 0f5900e52fc9ec99629d9bc54b5e4bade8f7b84f /activerecord | |
parent | 212a74d8b7b4a4010b32cd26bb06e843ec9aacb7 (diff) | |
download | rails-c8882c1a4057179c272ba17c3c63efb47ca05f31.tar.gz rails-c8882c1a4057179c272ba17c3c63efb47ca05f31.tar.bz2 rails-c8882c1a4057179c272ba17c3c63efb47ca05f31.zip |
unused method arguments
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/null_relation.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/null_relation.rb b/activerecord/lib/active_record/null_relation.rb index ff79f1d398..aca8291d75 100644 --- a/activerecord/lib/active_record/null_relation.rb +++ b/activerecord/lib/active_record/null_relation.rb @@ -7,19 +7,19 @@ module ActiveRecord @records = [] end - def pluck(column_name) + def pluck(_column_name) [] end - def delete_all(conditions = nil) + def delete_all(_conditions = nil) 0 end - def update_all(updates, conditions = nil, options = {}) + def update_all(_updates, _conditions = nil, _options = {}) 0 end - def delete(id_or_array) + def delete(_id_or_array) 0 end @@ -51,13 +51,12 @@ module ActiveRecord 0 end - def calculate(operation, column_name, options = {}) + def calculate(_operation, _column_name, _options = {}) nil end - def exists?(id = false) + def exists?(_id = false) false end - end end |