Sha256: f5d446dcf638a684d6a9366971aded5c3611923e375fa2bdf11b132f4e727a28

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 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.upcase, *args, &block)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rom-sql-1.1.1 lib/rom/sql/group_dsl.rb
rom-sql-1.1.0 lib/rom/sql/group_dsl.rb
rom-sql-1.0.3 lib/rom/sql/group_dsl.rb
rom-sql-1.0.2 lib/rom/sql/group_dsl.rb
rom-sql-1.0.1 lib/rom/sql/group_dsl.rb
rom-sql-1.0.0 lib/rom/sql/group_dsl.rb