lib/data_mapper/sql_finders/adapter.rb in dm-sql-finders-0.0.1 vs lib/data_mapper/sql_finders/adapter.rb in dm-sql-finders-0.0.2
- old
+ new
@@ -1,7 +1,10 @@
module DataMapper
class Adapters::DataObjectsAdapter
- def select_statement(query)
+ def select_statement_with_query(query)
SQLFinders::SQLBuilder.new(self, query).select_statement
end
+
+ alias_method :select_statement_without_query, :select_statement
+ alias_method :select_statement, :select_statement_with_query
end
end