~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activesupport/lib/active_support/core_ext/time/behavior.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
module ActiveSupport #:nodoc:
2
 
  module CoreExtensions #:nodoc:
3
 
    module Time #:nodoc:
4
 
      module Behavior
5
 
        # Enable more predictable duck-typing on Time-like classes. See
6
 
        # Object#acts_like?.
7
 
        def acts_like_time?
8
 
          true
9
 
        end
10
 
      end
11
 
    end
12
 
  end
13
 
end