fixed unit tests, tweaked attr_accessible rules

This commit is contained in:
albert
2010-02-19 17:54:44 -05:00
parent 703eb6a1b6
commit 2f907c67b5
7 changed files with 53 additions and 23 deletions

View File

@@ -13,7 +13,7 @@ class Post < ActiveRecord::Base
has_one :upload, :dependent => :destroy
has_many :versions, :class_name => "PostVersion", :dependent => :destroy
has_many :votes, :class_name => "PostVote", :dependent => :destroy
attr_accessible :source, :rating, :tag_string, :old_tag_string
attr_accessible :source, :rating, :tag_string, :old_tag_string, :updater_id, :updater_ip_addr
module FileMethods
def delete_files