e6c74e8251
- add users.is_moderator and look at that for most things, not is_admin - make default user in readme be a moderator - log moderator actions in story edits, comment deletions/undeletions (and later, user disabling). - remove ability for moderators to edit comments, there's really no reason to.
11 lines
218 B
Ruby
11 lines
218 B
Ruby
class Moderation < ActiveRecord::Base
|
|
belongs_to :moderator,
|
|
:class_name => "User",
|
|
:foreign_key => "moderator_user_id"
|
|
belongs_to :story
|
|
belongs_to :comment
|
|
belongs_to :user
|
|
|
|
attr_accessible nil
|
|
end
|