You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why I'm getting this error, I set up a test app and was able to schedule a recurring rule. Whereas in my production app I get this error. The only configuration difference that may apply is that I have the following in application.rb config.beginning_of_week = :sunday
here's event.rb
class Event < ApplicationRecord
include IceCube
require 'active_support/time'
serialize :recurrence, IceCube::Schedule
before_save :schedule
def schedule
if recurrence.nil?
self.recurrence = Schedule.new(starts_at) do |s|
if cycle == 'Weekly'
s.add_recurrence_rule Rule.weekly(week_step.to_i) if week_step.present?
s.add_recurrence_rule Rule.weekly.day(symbolize_days) if week_day_list.present?
end
end
else
self.recurrence
end
end
end
The text was updated successfully, but these errors were encountered:
I'm not sure why I'm getting this error, I set up a test app and was able to schedule a recurring rule. Whereas in my production app I get this error. The only configuration difference that may apply is that I have the following in application.rb
config.beginning_of_week = :sunday
here's event.rb
The text was updated successfully, but these errors were encountered: