Validation support for ActiveModel::Validations without a shim

move validation helpers into ActiveModel::Validations for default base support
add check if attribute methods shim is being used
refactor specs for helper and attribute methods separation
more mongoid workarounds due to incorrect use of AS::Concern
This commit is contained in:
Adam Meehan
2010-09-29 08:09:43 +10:00
parent 5f31f40413
commit 6e67d45274
12 changed files with 92 additions and 78 deletions

View File

@@ -1,5 +1,5 @@
ValidatesTimeliness.setup do |config|
# Add plugin to supported ORMs (:active_record, :mongoid)
# Extend ORM/ODMs for full support (:active_record, :mongoid).
# config.extend_orms = [ :active_record ]
#
# User the plugin date/time parser which is stricter and extendable