Fix bug.
This commit is contained in:
parent
dce4cac9bc
commit
aff1807a35
|
@ -7,6 +7,7 @@ module Admin::PluginTemplatesHelper
|
||||||
end
|
end
|
||||||
def time_iterate(start_time, end_time, step, &block)
|
def time_iterate(start_time, end_time, step, &block)
|
||||||
begin
|
begin
|
||||||
|
start_time = start_time.to_date if end_time.class == Date
|
||||||
yield(start_time)
|
yield(start_time)
|
||||||
end while (start_time += step) <= end_time
|
end while (start_time += step) <= end_time
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue