Kill trailing whitespace in ruby files

This commit is contained in:
小太
2013-03-19 23:10:10 +11:00
parent c107f96cec
commit cba839ba76
319 changed files with 2710 additions and 2710 deletions

View File

@@ -1,6 +1,6 @@
class PostVote < ActiveRecord::Base
class Error < Exception ; end
belongs_to :post
before_validation :initialize_user, :on => :create
validates_presence_of :post_id, :user_id, :score
@@ -13,7 +13,7 @@ class PostVote < ActiveRecord::Base
write_attribute(:score, -1)
end
end
def initialize_user
self.user_id = CurrentUser.user.id
end