mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
Code style fixes
This commit is contained in:
parent
c6bbc67dab
commit
d8acf60049
72 changed files with 458 additions and 594 deletions
|
|
@ -3,11 +3,11 @@ class Preference < ApplicationRecord
|
|||
belongs_to :sms_context, :class_name => 'Context'
|
||||
|
||||
def self.themes
|
||||
{ :black => 'black', :light_blue => 'light_blue'}
|
||||
{ :black => 'black', :light_blue => 'light_blue' }
|
||||
end
|
||||
|
||||
def self.due_styles
|
||||
{ :due_in_n_days => 0, :due_on => 1}
|
||||
{ :due_in_n_days => 0, :due_on => 1 }
|
||||
end
|
||||
|
||||
def hide_completed_actions?
|
||||
|
|
@ -29,8 +29,7 @@ class Preference < ApplicationRecord
|
|||
date.in_time_zone(time_zone).beginning_of_day
|
||||
end
|
||||
|
||||
def format_date (date)
|
||||
def format_date(date)
|
||||
return date ? date.in_time_zone(time_zone).strftime("#{date_format}") : ''
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue