method

included

rails latest stable - Class: ActiveModel::Validations

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

included(base)
public

No documentation available.

# File activemodel/lib/active_model/validations.rb, line 5
    def self.included(base) # :nodoc:
      base.extend(ClassMethods)
      base.__send__(:include, ActiveSupport::Callbacks)
      base.define_callbacks :validate, :validate_on_create, :validate_on_update
    end