tag subscriptions

This commit is contained in:
albert
2011-01-30 02:24:47 -05:00
parent ee9aca973f
commit c0968ec5e3
7 changed files with 51 additions and 20 deletions

View File

@@ -22,6 +22,7 @@ class User < ActiveRecord::Base
before_create :normalize_level
has_many :feedback, :class_name => "UserFeedback", :dependent => :destroy
has_one :ban
has_many :subscriptions, :class_name => "TagSubscription"
belongs_to :inviter, :class_name => "User"
scope :named, lambda {|name| where(["lower(name) = ?", name])}
scope :admins, where("is_admin = TRUE")