lib/query_helper.rb in query_helper-0.2.14 vs lib/query_helper.rb in query_helper-0.2.15
- old
+ new
@@ -142,10 +142,10 @@
)
manipulator.build()
end
def to_json(args)
- JSON.generate(results)
+ results.to_json
end
def to_sql
query = build_query()
return query if @bind_variables.length == 0