提交 362acba0 编写于 作者: C Carlos Antonio da Silva

Use Ruby's #include? to avoid relying on AS extension

The build has failed when running the date/time ext tests in isolation
due to the missing extension, so better than adding a require is using
just Ruby in this case.

https://travis-ci.org/rails/rails/jobs/46107954#L1077
上级 f542ffef
......@@ -48,7 +48,7 @@ def future?
# Returns true if the date/time falls on a Saturday or Sunday.
def on_weekend?
wday.in?(WEEKEND_DAYS)
WEEKEND_DAYS.include?(wday)
end
# Returns a new date/time the specified number of days ago.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册