Sha256: 854cb36a7b060b35e4ac5a0c95a9ffcc4f003513b28af46ab14358c823914874

Contents?: true

Size: 383 Bytes

Versions: 13

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

require 'rom/sql/dsl'

module ROM
  module SQL
    # @api private
    class OrderDSL < DSL
      private

      # @api private
      def method_missing(meth, *args, &block)
        if schema.key?(meth)
          schema[meth]
        else
          ::Sequel::VIRTUAL_ROW.__send__(meth.to_s.upcase, *args, &block)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rom-sql-3.6.5 lib/rom/sql/order_dsl.rb
rom-sql-3.6.4 lib/rom/sql/order_dsl.rb
rom-sql-3.6.3 lib/rom/sql/order_dsl.rb
rom-sql-3.6.2 lib/rom/sql/order_dsl.rb
rom-sql-3.6.1 lib/rom/sql/order_dsl.rb
rom-sql-3.6.0 lib/rom/sql/order_dsl.rb
rom-sql-3.5.0 lib/rom/sql/order_dsl.rb
rom-sql-3.4.0 lib/rom/sql/order_dsl.rb
rom-sql-3.3.3 lib/rom/sql/order_dsl.rb
rom-sql-3.3.2 lib/rom/sql/order_dsl.rb
rom-sql-3.3.1 lib/rom/sql/order_dsl.rb
rom-sql-3.3.0 lib/rom/sql/order_dsl.rb
rom-sql-3.2.0 lib/rom/sql/order_dsl.rb