3 include DataMapper::Resource
5 property :id, Integer, :serial => true
7 property :controller, String
8 property :actions, String
12 rels = RightRoles.all(:right_id => self.id).map {|r| r.role_id}
13 rels.empty? ? [] : Role.all(:id => rels)
19 # Hack! Work-around no DM many-to-many
22 include DataMapper::Resource
23 property :right_id, Integer, :key => true
24 property :role_id, Integer, :key => true