diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-28 23:43:03 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-28 23:43:26 -0700 |
commit | 609c1988d2e274b365c5299cc5933fb6855e4175 (patch) | |
tree | 83c132d1cca1f3eb632c06d007c76399f9bec5c3 /activesupport/lib/active_support/core_ext/date | |
parent | 389b081e374e0c6f2c124837439628684cd4f704 (diff) | |
download | rails-609c1988d2e274b365c5299cc5933fb6855e4175.tar.gz rails-609c1988d2e274b365c5299cc5933fb6855e4175.tar.bz2 rails-609c1988d2e274b365c5299cc5933fb6855e4175.zip |
Tease out Object#acts_like? behaviors
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date/acts_like.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/acts_like.rb b/activesupport/lib/active_support/core_ext/date/acts_like.rb index ea6cb38973..cd90cee236 100644 --- a/activesupport/lib/active_support/core_ext/date/acts_like.rb +++ b/activesupport/lib/active_support/core_ext/date/acts_like.rb @@ -1,8 +1,7 @@ -require 'date' +require 'active_support/core_ext/object/acts_like' class Date - # Enable more predictable duck-typing on Date-like classes. See - # Object#acts_like?. + # Duck-types as a Date-like class. See Object#acts_like?. def acts_like_date? true end |