mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-26 17:14:07 +01:00
More code climate style fixes
This commit is contained in:
parent
d8acf60049
commit
67a426a2e9
28 changed files with 157 additions and 172 deletions
|
|
@ -49,7 +49,7 @@ class Project < ApplicationRecord
|
|||
end
|
||||
|
||||
def set_last_reviewed_now
|
||||
self.last_reviewed = Time.now
|
||||
self.last_reviewed = Time.zone.now
|
||||
end
|
||||
|
||||
def set_completed_at_date
|
||||
|
|
@ -105,7 +105,7 @@ class Project < ApplicationRecord
|
|||
return !self.todos.deferred_or_blocked.exists? && !self.todos.active.exists?
|
||||
end
|
||||
|
||||
def shortened_name(length=40)
|
||||
def shortened_name(length = 40)
|
||||
name.truncate(length, :omission => "...").html_safe
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue