Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 609c1988d2
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.266 kb
require 'active_support/core_ext/object/acts_like'
class DateTime
# Duck-types as a Date-like class. See Object#acts_like?.
def acts_like_date?
true
end
# Duck-types as a Time-like class. See Object#acts_like?.
def acts_like_time?
true
end
end
Jump to Line
Something went wrong with that request. Please try again.