fixes exception when sending email about comment reply
This commit is contained in:
@@ -27,6 +27,10 @@ class Poll < ActiveRecord::Base
|
||||
|
||||
scope :sort_for_list, -> { order(:geozone_restricted, :starts_at, :name) }
|
||||
|
||||
def title
|
||||
name
|
||||
end
|
||||
|
||||
def current?(timestamp = Date.current.beginning_of_day)
|
||||
starts_at <= timestamp && timestamp <= ends_at
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user