Skip to content

Commit

Permalink
Remove date presence checking
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroalemao committed Apr 18, 2016
1 parent 8db8df9 commit 4700c6f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/helpers/date_time_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def api_date_format(date_time)
end

def to_be_debated_on_in_words(date, today = Date.current)
return unless date.present?

scope = :"petitions.to_be_debated_on_in_words"
days = (date - today).to_i
key = TO_BE_DEBATED_KEYS[days]
Expand Down

0 comments on commit 4700c6f

Please sign in to comment.