Let's get serious about linting, folks.

This commit is contained in:
James Mason 2017-11-27 20:04:54 -08:00
parent 8f43da79b5
commit 27f6d8ad73
26 changed files with 341 additions and 235 deletions

View file

@ -0,0 +1,18 @@
module ConferenceHelper
# Return true if only call_for_papers or call_for_tracks is open
def one_call_open(conference)
conference.call_for_events.try(:open?) ^
conference.call_for_tracks.try(:open?)
end
# URL for sponsorship emails
def sponsorship_mailto(conference)
[
'mailto:',
conference.contact.sponsor_email,
'?subject=',
url_encode(conference.short_title),
'%20Sponsorship'
].join
end
end