diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-22 22:13:24 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-09-22 22:13:24 -0600 |
commit | 4a7c82d20671b3eccf5e302e3c8351a1bda1ef0f (patch) | |
tree | 538ff0a4ae0f5515b8f1fd9957bd4b7d30aca4bf | |
parent | eb52c8979b4e8023f8415e5f8a568e8933ecbd38 (diff) | |
parent | f37db173450ee79c2cce5b0aa34d8fef567965a8 (diff) | |
download | rails-4a7c82d20671b3eccf5e302e3c8351a1bda1ef0f.tar.gz rails-4a7c82d20671b3eccf5e302e3c8351a1bda1ef0f.tar.bz2 rails-4a7c82d20671b3eccf5e302e3c8351a1bda1ef0f.zip |
Merge pull request #21727 from yui-knk/fix/remove_unused_args
Remove not used argument `table_name` of `sanitize_sql_for_conditions`
-rw-r--r-- | activerecord/lib/active_record/sanitization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/sanitization.rb b/activerecord/lib/active_record/sanitization.rb index ba75ffa5a1..32f4229977 100644 --- a/activerecord/lib/active_record/sanitization.rb +++ b/activerecord/lib/active_record/sanitization.rb @@ -15,7 +15,7 @@ module ActiveRecord # them into a valid SQL fragment for a WHERE clause. # ["name='%s' and group_id='%s'", "foo'bar", 4] returns "name='foo''bar' and group_id='4'" # "name='foo''bar' and group_id='4'" returns "name='foo''bar' and group_id='4'" - def sanitize_sql_for_conditions(condition, table_name = self.table_name) + def sanitize_sql_for_conditions(condition) return nil if condition.blank? case condition |