repo.or.cz
/
merb_mart.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Cleaned up properties, many-to-one associations
[merb_mart.git]
/
app
/
models
/
role.rb
blob
4c8c6b35837992d903c29280374500cb51c5a64c
1
class Role
2
3
include DataMapper::Resource
4
5
property :id, Fixnum, :serial => true
6
property :name, String
7
property :description, DataMapper::Types::Text
8
9
many_to_many :users
10
many_to_many :rights #, :order => 'name ASC'
11
12
end