method
ensure_iteration_allowed
ensure_iteration_allowed()
private
Hide source
# File activesupport/lib/active_support/core_ext/range/each.rb, line 18 def ensure_iteration_allowed if first.is_a?(Time) raise TypeError, "can't iterate from #{first.class}" end end