This commit is contained in:
Toks
2013-05-13 15:16:03 -04:00
parent eb0dad4e2a
commit d5a686a5b7
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ class Pool < ActiveRecord::Base
before_validation :initialize_is_active, :on => :create
before_validation :initialize_creator, :on => :create
after_save :create_version
after_create :synchronize!
before_destroy :create_mod_action_for_destroy
attr_accessible :name, :description, :post_ids, :post_id_array, :post_count, :is_active, :as => [:member, :gold, :platinum, :contributor, :janitor, :moderator, :admin, :default]
attr_accessible :is_deleted, :as => [:janitor, :moderator, :admin]

View File

@@ -4,6 +4,8 @@
<h1>New Pool</h1>
<%= f.input :name %>
<%= f.input :description %>
<%= f.input :post_ids, :label => "Posts" %>
<%= f.input :is_active %>
<%= f.button :submit %>
<% end %>
</div>