This commit is contained in:
albert
2013-02-26 23:49:52 -08:00
parent 7290e1000a
commit 568eaa1f18
2 changed files with 7 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ class TagSubscription < ActiveRecord::Base
before_save :normalize_name
before_save :limit_tag_count
attr_accessible :name, :tag_query, :post_ids, :is_public, :is_visible_on_profile
validates_presence_of :name, :tag_query, :is_public, :creator_id
validates_presence_of :name, :tag_query, :creator_id
validate :creator_can_create_subscriptions, :on => :create
def normalize_name