fixes #646
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<%= simple_form_for(@tag_subscription) do |f| %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :tag_query %>
|
||||
<%= f.input :is_public %>
|
||||
<div class="input">
|
||||
<label for="tag_subscription_is_public">
|
||||
<%= check_box "tag_subscription", "is_public" %>
|
||||
Is Public
|
||||
</label>
|
||||
</div>
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user