method

validate_options

rails latest stable - Class: ActiveRecord::Associations::Builder::HasOne

Method deprecated or moved

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

validate_options()
private

No documentation available.

# File activerecord/lib/active_record/associations/builder/has_one.rb, line 24
      def validate_options
        valid_options = self.class.valid_options
        valid_options += self.class.through_options if options[:through]
        options.assert_valid_keys(valid_options)
      end