instance method create_has_one_through_reflection

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v3.0.20 Private

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

create_has_one_through_reflection(association_id, options)

No documentation comment.

Parameters

association_id req
options req
Source
# File activerecord/lib/active_record/associations.rb, line 1582
        def create_has_one_through_reflection(association_id, options)
          options.assert_valid_keys(
            :class_name, :foreign_key, :remote, :select, :conditions, :order, :include, :dependent, :counter_cache, :extend, :as, :through, :source, :source_type, :validate
          )
          create_reflection(:has_one, association_id, options, self)
        end

Defined in activerecord/lib/active_record/associations.rb line 1582 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Associations::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close