Sha256: ff4fe6a402004629a015fbd7d9b5186bd93542771d05bb122be75f1f02232746

Contents?: true

Size: 235 Bytes

Versions: 3

Compression:

Stored size: 235 Bytes

Contents

module ROM
  module SQL

    module RelationExtension
      attr_reader :model

      def self.extended(relation)
        relation.model.set_dataset(relation.dataset)
        relation.model.dataset.naked!
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rom-sql-0.2.0 lib/rom/sql/relation_extension.rb
rom-sql-0.1.1 lib/rom/sql/relation_extension.rb
rom-sql-0.1.0 lib/rom/sql/relation_extension.rb