module ActiveSupport::EachTimeWithZone

def each(&block)

:nodoc:
def each(&block)
  ensure_iteration_allowed
  super
end

def ensure_iteration_allowed

def ensure_iteration_allowed
  raise TypeError, "can't iterate from #{first.class}" if first.is_a?(TimeWithZone)
end

def step(n = 1, &block)

def step(n = 1, &block)
  ensure_iteration_allowed
  super
end