lib/torque/postgresql/auxiliary_statement.rb in torque-postgresql-0.2.2 vs lib/torque/postgresql/auxiliary_statement.rb in torque-postgresql-0.2.3

- old
+ new

@@ -21,10 +21,10 @@ end # Find or create the class that will handle statement def lookup(name, base) const = name.to_s.camelize << '_' << self.name.demodulize - return base.const_get(const) if base.const_defined?(const) + return base.const_get(const, false) if base.const_defined?(const, false) base.const_set(const, Class.new(AuxiliaryStatement)) end # Create a new instance of an auxiliary statement def instantiate(statement, base, options = nil)