Sha256: 14f84da44c00ea8be5190770967c3ac70dbb59e494fd31295e92fab9a8f83f3e

Contents?: true

Size: 330 Bytes

Versions: 7

Compression:

Stored size: 330 Bytes

Contents

module Portfolio
  class Project
    include DataMapper::Resource

    property :id,     Serial
    property :title,  String, :required => true,  :length=> 2..50
    property :url,    String

    remix 1, :images
    remix n, :viewables
    remix n, :commentables, :as => 'comments', :for => 'User', :via => 'commentor'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dm-is-remixable-1.2.0 spec/data/project.rb
dm-is-remixable-1.2.0.rc2 spec/data/project.rb
dm-is-remixable-1.2.0.rc1 spec/data/project.rb
dm-is-remixable-1.1.0 spec/data/project.rb
dm-is-remixable-1.1.0.rc3 spec/data/project.rb
dm-is-remixable-1.1.0.rc2 spec/data/project.rb
dm-is-remixable-1.1.0.rc1 spec/data/project.rb