increased page limits for gold+platinum users

This commit is contained in:
albert
2013-03-18 11:47:06 -07:00
parent 6d4ac721ee
commit 47e1f3526f
2 changed files with 7 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ class TagSubscription < ActiveRecord::Base
before_save :limit_tag_count
attr_accessible :name, :tag_query, :post_ids, :is_public, :is_visible_on_profile
validates_presence_of :name, :tag_query, :creator_id
validates_format_of :tag_query, :with => /^(?:\S+\s*){1,20}$/, :message => "can have up to 20 tags"
validates_format_of :tag_query, :with => /^(?:\S+\s*){1,20}$/m, :message => "can have up to 20 tags"
validate :creator_can_create_subscriptions, :on => :create
def normalize_name