method

build

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

Method deprecated or moved

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

build()
public

No documentation available.

# File activerecord/lib/active_record/associations/builder/belongs_to.rb, line 15
    def build
      reflection = super
      add_counter_cache_callbacks(reflection) if options[:counter_cache]
      add_touch_callbacks(reflection)         if options[:touch]
      reflection
    end