Sha256: d84fef11f9b7c2d829843714b52713bd3813da31be9e8900dcdc08669e2ddd34

Contents?: true

Size: 520 Bytes

Versions: 14

Compression:

Stored size: 520 Bytes

Contents

require 'data/viewable'
require 'data/billable'
require 'data/addressable'
require 'data/rating'

class User

  include DataMapper::Resource

  property :id, Serial
  property :first_name, String, :required => true,  :length=> 2..50
  property :last_name, String, :required => true, :length => 2..50

  remix n, :viewables
  remix n, :billables, :model => "Account"
  remix n, :addressables
  remix n, :commentables, :as => "comments", :for => "User", :via => "commentor"
  remix n, "My::Nested::Remixable::Rating"

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dm-is-remixable-1.2.0 spec/data/user.rb
dm-is-remixable-1.2.0.rc2 spec/data/user.rb
dm-is-remixable-1.2.0.rc1 spec/data/user.rb
dm-is-remixable-1.1.0 spec/data/user.rb
dm-is-remixable-1.1.0.rc3 spec/data/user.rb
dm-is-remixable-1.1.0.rc2 spec/data/user.rb
dm-is-remixable-1.1.0.rc1 spec/data/user.rb
dm-is-remixable-1.0.2 spec/data/user.rb
dm-is-remixable-1.0.1 spec/data/user.rb
dm-is-remixable-1.0.0 spec/data/user.rb
dm-is-remixable-1.0.0.rc3 spec/data/user.rb
dm-is-remixable-1.0.0.rc2 spec/data/user.rb
dm-is-remixable-1.0.0.rc1 spec/data/user.rb
dm-is-remixable-0.10.2 spec/data/user.rb