APIdock / Ruby on Rails
/
Browse About
method

create_has_one_reflection

v2.0.3 - Show latest stable - Class: ActiveRecord::Associations::ClassMethods
create_has_one_reflection(association_id, options)
private

No documentation available.

# File activerecord/lib/active_record/associations.rb, line 1227
        def create_has_one_reflection(association_id, options)
          options.assert_valid_keys(
            :class_name, :foreign_key, :remote, :conditions, :order, :include, :dependent, :counter_cache, :extend, :as
          )

          create_reflection(:has_one, association_id, options, self)
        end

Related methods

  • Instance methods
  • belongs_to
  • has_and_belongs_to_many
  • has_many
  • has_one
  • Private methods
  • privateadd_association_callbacks
  • privateadd_limited_ids_condition!
  • privateadd_multiple_associated_save_callbacks
  • privateassociation_accessor_methods
  • privateassociation_constructor_method
  • privatecollection_accessor_methods
  • privatecollection_reader_method
  • privatecolumn_aliases
  • privatecondition_word
  • privateconfigure_dependency_for_has_many
  • privateconfigure_dependency_for_has_one
  • privateconstruct_finder_sql_for_association_limiting
  • privateconstruct_finder_sql_with_included_associations
  • privatecreate_belongs_to_reflection
  • privatecreate_extension_modules
  • privatecreate_has_and_belongs_to_many_reflection
  • privatecreate_has_many_reflection
  • privatecreate_has_one_reflection
  • privatefind_with_associations
  • privateguard_against_unlimitable_reflections
  • privateinclude_eager_conditions?
  • privateinclude_eager_order?
  • privatejoin_table_name
  • privatereflect_on_included_associations
  • privateselect_all_rows
  • privateselect_limited_ids_list
  • privateusing_limitable_reflections?
APIdock API Documentation Browser

Boost your team's developer productivity with Swarmia.

© 2026 APIdock