lib/pg_objects/manager.rb in pg_objects-0.4.2 vs lib/pg_objects/manager.rb in pg_objects-0.4.3

- old
+ new

@@ -46,17 +46,12 @@ obj.status = :processing create_dependencies(obj.dependencies) log.write("creating #{obj.name}") - execute_query(obj) + ActiveRecord::Base.connection.execute obj.sql_query obj.status = :done - end - - def execute_query(obj) - exec_method = obj.multistatement? ? :execute : :exec_query - ActiveRecord::Base.connection.send exec_method, obj.sql_query end def create_dependencies(dependencies) dependencies.each { |dep_name| create_object find_object(dep_name) } end