instance method comma_pair_list

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v3.1.12 Private

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12

Signature

comma_pair_list(hash)

Returns a comma-separated pair list, like “key1 = val1, key2 = val2”.

Parameters

hash req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close