method

valid_options

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: HasOne
valid_options() public

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/associations/builder/has_one.rb, line 7
    def valid_options
      valid = super + [:order, :as]
      valid += [:through, :source, :source_type] if options[:through]
      valid
    end
Register or log in to add new notes.