aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-10-23 22:01:14 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-10-23 22:10:15 +0900
commit68db6bc431fbff0b2291f1f60ccf974b4eece596 (patch)
tree83e3ceeaa83e20ed65071aea33637826026d3464 /activemodel/test/models
parentdc8a20677d820aa09413c6a3e25c9d70ba24561a (diff)
downloadrails-68db6bc431fbff0b2291f1f60ccf974b4eece596.tar.gz
rails-68db6bc431fbff0b2291f1f60ccf974b4eece596.tar.bz2
rails-68db6bc431fbff0b2291f1f60ccf974b4eece596.zip
Let validates_inclusion_of accept Time and DateTime ranges
fixes 4.0.0 regression introduced in 0317b93c17a46d7663a8c36edc26ad0ba3d75f85
Diffstat (limited to 'activemodel/test/models')
-rw-r--r--activemodel/test/models/topic.rb2
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