diff options
author | Matthew Rudy Jacobs <matthewrudyjacobs@gmail.com> | 2015-05-12 19:33:06 +0800 |
---|---|---|
committer | Matthew Rudy Jacobs <matthewrudyjacobs@gmail.com> | 2015-05-12 19:33:06 +0800 |
commit | ddbf097cae7b49e4c464d749266d0d0a71dd9ae2 (patch) | |
tree | d0ffb5e002c520ad94e6e2b2034985bd9e5fda88 /activerecord | |
parent | 4bd089f1d93fa168b0ae17dd8c92a5157a2537d7 (diff) | |
download | rails-ddbf097cae7b49e4c464d749266d0d0a71dd9ae2.tar.gz rails-ddbf097cae7b49e4c464d749266d0d0a71dd9ae2.tar.bz2 rails-ddbf097cae7b49e4c464d749266d0d0a71dd9ae2.zip |
remove documentation for sanitize_sql_for_conditions with a Hash
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/sanitization.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/sanitization.rb b/activerecord/lib/active_record/sanitization.rb index ab8ea54bc6..c2567311bd 100644 --- a/activerecord/lib/active_record/sanitization.rb +++ b/activerecord/lib/active_record/sanitization.rb @@ -11,10 +11,9 @@ module ActiveRecord protected - # Accepts an array, hash, or string of SQL conditions and sanitizes + # Accepts an array or string of SQL conditions and sanitizes # 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", group_id: 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) return nil if condition.blank? |