Sha256: 09d748ad57dd8bbda89532bb7333dfa2cefca1ffc93d18101cccb976a2498de2

Contents?: true

Size: 157 Bytes

Versions: 7

Compression:

Stored size: 157 Bytes

Contents

class <%= role_cname.camelize %> < ActiveRecord::Base
  has_and_belongs_to_many :<%= user_cname.tableize %>
  belongs_to :resource, :polymorphic => true
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rolify-0.5.1 lib/generators/rolify/role/templates/role.rb
rolify-0.5.0 lib/generators/rolify/role/templates/role.rb
rolify-0.4.0 lib/generators/rolify/role/templates/role.rb
rolify-0.3.0 lib/generators/rolify/role/templates/role.rb
rolify-0.2.1 lib/generators/rolify/role/templates/role.rb
rolify-0.2.0 lib/generators/rolify/role/templates/role.rb
rolify-0.1.1 lib/generators/rolify/role/templates/role.rb