method

valid_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 (v4.2.9) is shown here.

valid_options()
public

No documentation available.

# File activerecord/lib/active_record/associations/builder/has_one.rb, line 7
    def valid_options
      valid = super + [:as, :foreign_type]
      valid += [:through, :source, :source_type] if options[:through]
      valid
    end