can edit tag subscriptions
This commit is contained in:
@@ -6,7 +6,7 @@ class TagSubscription < ActiveRecord::Base
|
|||||||
before_save :limit_tag_count
|
before_save :limit_tag_count
|
||||||
attr_accessible :name, :tag_query, :post_ids, :is_public, :is_visible_on_profile
|
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, :is_public, :creator_id
|
||||||
validate :creator_can_create_subscriptions
|
validate :creator_can_create_subscriptions, :on => :create
|
||||||
|
|
||||||
def normalize_name
|
def normalize_name
|
||||||
self.name = name.gsub(/\W/, "_")
|
self.name = name.gsub(/\W/, "_")
|
||||||
|
|||||||
Reference in New Issue
Block a user