Fix all the trailing whitespace

This commit is contained in:
Jakub Arnold
2013-02-07 16:45:24 +01:00
parent 1839614bcc
commit 61654ab8f0
230 changed files with 1165 additions and 1165 deletions

View File

@ -2,12 +2,12 @@ class DraftSequence < ActiveRecord::Base
def self.next!(user,key)
user_id = user
user_id = user.id unless user.class == Fixnum
h = {user_id: user_id, draft_key: key}
h = {user_id: user_id, draft_key: key}
c = DraftSequence.where(h).first
c ||= DraftSequence.new(h)
c.sequence ||= 0
c.sequence += 1
c.save
c.save
c.sequence
end
@ -22,7 +22,7 @@ class DraftSequence < ActiveRecord::Base
if r.length == 0
0
else
else
r[0][0].to_i
end
end