Dokumentation hinzugefügt
annotation gem installiert und Dokumentation in app/doc eingefügt
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
# == 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
|
||||
|
||||
Reference in New Issue
Block a user