class WhereLower::ScopeSpawner::HashScopeSpawner
Public Instance Methods
spawn()
click to toggle source
If prefix already exists, that means we are in association table already, which cannot accept another hash This gem has no ability to handle deep nested associaiton reflection yet
# File lib/where_lower/scope_spawner.rb, line 126 def spawn fail TooDeepNestedConditions unless prefix.nil? value.inject(scope) do |new_scope, (column_name, column_value)| ScopeSpawner.spawn(new_scope, column_name, column_value, column_or_table_name) end end