mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-11 23:22:36 +01:00
Fix syntax errors for upgrade of Rails version
This commit is contained in:
parent
7f567862d7
commit
86e36b07a6
9 changed files with 21 additions and 21 deletions
|
|
@ -30,7 +30,7 @@ module RecurringTodos
|
|||
super
|
||||
validate_not_blank(every_x_week, "Every other nth week may not be empty for weekly recurrence setting")
|
||||
something_set = %w{ sunday monday tuesday wednesday thursday friday saturday }.inject(false) { |set, day| set || send("on_#{day}") }
|
||||
errors[:base] << "You must specify at least one day on which the todo recurs" unless something_set
|
||||
errors.add(:base, "You must specify at least one day on which the todo recurs") unless something_set
|
||||
end
|
||||
|
||||
def get_next_date(previous)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue