instance method
comma_pair_list
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.1.12 PrivateSignature
comma_pair_list(hash)
Returns a comma-separated pair list, like “key1 = val1, key2 = val2”.
Parameters
-
hashreq
Source
# File activerecord/lib/active_record/base.rb, line 3162
def comma_pair_list(hash)
hash.map { |k,v| "#{k} = #{v}" }.join(", ")
end
Defined in activerecord/lib/active_record/base.rb line 3162
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base