Sha256: 24dd4b2ddc6b3625d3194896cb40abab756e8295a84a865c65613ae17eb7427a

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

class <%= user_role_class %>      
  include DataMapper::Resource
    
  belongs_to :<%= user_class.underscore %>, '<%= user_class %>', :key => true
  belongs_to :<%= role_class.underscore %>, '<%= role_class %>', :key => true
end  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roles_data_mapper-0.3.1 lib/generators/data_mapper/roles/templates/many_roles/user_role.rb
roles_data_mapper-0.3.0 lib/generators/data_mapper/roles/templates/many_roles/user_role.rb