module ArelHash
Constants
- Equality
- NO_FILTER_HASH
- Nodes
- VERSION
- ZERO_RESULTS_HASH
- ZERO_RESULTS_NODE
Public Class Methods
create_from_active_record(hash, properties)
click to toggle source
# File lib/arel_hash.rb, line 28 def self.create_from_active_record(hash, properties) ArelHashFactory.new(properties).create_from_active_record(hash) end
create_node(table, hash)
click to toggle source
# File lib/arel_hash.rb, line 19 def self.create_node(table, hash) NodeFactory.new(table).create_node(hash) end
singleton_tuple!(hash)
click to toggle source
# File lib/arel_hash.rb, line 23 def self.singleton_tuple!(hash) raise "#{hash}: only hashes with maximum one key are supported" unless hash.length == 1 return hash.keys.first, hash.values.first end