perform_validations(options={}) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/validations.rb, line 65
    def perform_validations(options={})
      perform_validation = case options
      when Hash
        options[:validate] != false
      else
        ActiveSupport::Deprecation.warn "save(#{options}) is deprecated, please give save(:validate => #{options}) instead", caller
        options
      end

      if perform_validation
        valid?(options.is_a?(Hash) ? options[:context] : nil)
      else
        true
      end
    end
Register or log in to add new notes.