Sha256: bd61e6c29985064afa1e611d20f57eec59242c0de7dce1f271d4d903b54f0b7b

Contents?: true

Size: 164 Bytes

Versions: 2

Compression:

Stored size: 164 Bytes

Contents

module Dummy
  module Relations
    class Posts < ROM::Relation[:sql]
      dataset :posts

      def latest
        order(:id).reverse
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-lotus-0.1.0 spec/dummy/lib/dummy/relations/posts.rb
rom-lotus-0.0.1 spec/dummy/lib/dummy/relations/posts.rb