Files
fetsite/app/models/role.rb
Andreas Stephanides 0216dbdaae Dokumentation hinzugefügt
annotation gem installiert und Dokumentation in app/doc eingefügt
2013-07-23 13:50:03 +02:00

19 lines
438 B
Ruby
Executable File

# == Schema Information
#
# Table name: roles
#
# id :integer not null, primary key
# name :string(255)
# resource_id :integer
# resource_type :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#
class Role < ActiveRecord::Base
has_and_belongs_to_many :users, :join_table => :users_roles
belongs_to :resource, :polymorphic => true
scopify
end