Sha256: c046b63505dbed917f6c92720fbf4d78086b8fa5824fb487c13e9375be3c70e8

Contents?: true

Size: 175 Bytes

Versions: 5

Compression:

Stored size: 175 Bytes

Contents

# encoding: utf-8

class Role < ActiveRecord::Base
  has_many :users, :through => :user_role

  validates :name, :description, :presence => true

  def to_s
  	name
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playmo-0.1.9 recipes/templates/cancan_recipe/role.rb
playmo-0.1.8 recipes/templates/cancan_recipe/role.rb
playmo-0.1.7 recipes/templates/cancan_recipe/role.rb
playmo-0.1.6 recipes/templates/cancan_recipe/role.rb
playmo-0.1.5 recipes/templates/cancan_recipe/role.rb