instance method tables_in_hash

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18 Private

Signature

tables_in_hash(hash)

No documentation comment.

Parameters

hash req
Source
# File activerecord/lib/active_record/associations.rb, line 1711
        def tables_in_hash(hash)
          return [] if hash.blank?
          tables = hash.map do |key, value|
            if value.is_a?(Hash)
              key.to_s
            else
              tables_in_string(key) if key.is_a?(String)
            end
          end
          tables.flatten.compact
        end

Defined in activerecord/lib/active_record/associations.rb line 1711 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Associations::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close