Rubocop autocorrections
This commit is contained in:
parent
299738f58d
commit
43bef689fc
85 changed files with 622 additions and 578 deletions
|
|
@ -19,6 +19,7 @@ class Survey < ActiveRecord::Base
|
|||
# * +false+ -> If the survey is closed
|
||||
def active?
|
||||
return true unless start_date || end_date
|
||||
|
||||
# Find timezone of conference (survyeable is Conference or Event)
|
||||
timezone = surveyable.is_a?(Conference) ? surveyable.timezone : surveyable.conference.timezone
|
||||
now = Time.current.in_time_zone(timezone)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue