diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-23 09:03:13 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-23 09:03:13 -0700 |
commit | d6fe9e837e8dc15fa6859138a2f641ff85c02aa3 (patch) | |
tree | 83e3ceeaa83e20ed65071aea33637826026d3464 /activemodel/test/models | |
parent | dc8a20677d820aa09413c6a3e25c9d70ba24561a (diff) | |
parent | 68db6bc431fbff0b2291f1f60ccf974b4eece596 (diff) | |
download | rails-d6fe9e837e8dc15fa6859138a2f641ff85c02aa3.tar.gz rails-d6fe9e837e8dc15fa6859138a2f641ff85c02aa3.tar.bz2 rails-d6fe9e837e8dc15fa6859138a2f641ff85c02aa3.zip |
Merge pull request #12612 from amatsuda/amo_validates_inclusion_of_time_range_error
Let validates_inclusion_of accept Time and DateTime ranges
Diffstat (limited to 'activemodel/test/models')
-rw-r--r-- | activemodel/test/models/topic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/models/topic.rb b/activemodel/test/models/topic.rb index c9af78f595..1411a093e9 100644 --- a/activemodel/test/models/topic.rb +++ b/activemodel/test/models/topic.rb @@ -6,7 +6,7 @@ class Topic super | [ :message ] end - attr_accessor :title, :author_name, :content, :approved + attr_accessor :title, :author_name, :content, :approved, :created_at attr_accessor :after_validation_performed after_validation :perform_after_validation |