Sha256: 0ced65b5388f8df2bd51e700c3e129c7444890635088378c35059f9c456f22b4

Contents?: true

Size: 196 Bytes

Versions: 4

Compression:

Stored size: 196 Bytes

Contents

class User
  include DataMapper::Resource

  property :id,       Serial
  property :username, String
  property :role,     String

  has n, :posts

  def post_count
    @post_count.to_i
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sbf-dm-sql-finders-0.0.4 spec/support/fixtures/user.rb
dm-sql-finders-0.0.3 spec/support/fixtures/user.rb
dm-sql-finders-0.0.2 spec/support/fixtures/user.rb
dm-sql-finders-0.0.1 spec/support/fixtures/user.rb