1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Properly require ActiveModel validation dependencies

This commit is contained in:
Joshua Peek 2009-06-08 20:32:08 -05:00
parent 01515f8ecd
commit 28f36279cd
11 changed files with 35 additions and 29 deletions

View file

@ -1,3 +1,5 @@
require 'active_support/core_ext/string/inflections'
module ActiveModel module ActiveModel
class Errors < Hash class Errors < Hash
include DeprecatedErrorMethods include DeprecatedErrorMethods

View file

@ -1,3 +1,6 @@
require 'active_support/core_ext/array/extract_options'
require 'active_support/core_ext/hash/keys'
module ActiveModel module ActiveModel
module Validations module Validations
extend ActiveSupport::Concern extend ActiveSupport::Concern
@ -69,7 +72,6 @@ module ActiveModel
end end
private private
def validation_method(on) def validation_method(on)
:validate :validate
end end

View file

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveModel module ActiveModel
module Validations module Validations
module ClassMethods module ClassMethods