Sha256: 4c5eea64ff96c098930db67495eb545cf8eef270436bc3df96dd209b3597c3c1

Contents?: true

Size: 243 Bytes

Versions: 1

Compression:

Stored size: 243 Bytes

Contents

require 'dm-core'
require 'dm-is-read_only'

class ReadOnlyModel

  include DataMapper::Resource

  storage_names[:default] = 'shared_table'

  is :read_only

  property :id, Serial

  property :value, String

  has 0..n, :related_models

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-is-read_only-0.3.0 spec/classes/read_only_model.rb