Sha256: 56113fa956bbadf62de10b7a8a6cfaa8717eda7ba48151bb5a46f146c38afcee

Contents?: true

Size: 355 Bytes

Versions: 24

Compression:

Stored size: 355 Bytes

Contents

require 'rom/sql/dsl'

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

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rom-sql-1.2.2 lib/rom/sql/group_dsl.rb
rom-sql-1.2.1 lib/rom/sql/group_dsl.rb
rom-sql-1.2.0 lib/rom/sql/group_dsl.rb
rom-sql-1.1.2 lib/rom/sql/group_dsl.rb