lib/rom/sql/order_dsl.rb in rom-sql-1.0.0.beta1 vs lib/rom/sql/order_dsl.rb in rom-sql-1.0.0.beta2
- old
+ new
@@ -1,17 +1,15 @@
require 'rom/sql/dsl'
-require 'rom/sql/expression'
module ROM
module SQL
class OrderDSL < DSL
private
# @api private
def method_missing(meth, *args, &block)
if schema.key?(meth)
- attr = schema[meth]
- ::ROM::SQL::Expression.new(schema[meth])
+ schema[meth]
else
::Sequel::VIRTUAL_ROW.__send__(meth, *args, &block)
end
end
end