method
build
v3.2.8 -
Show latest stable
- Class:
ActiveRecord::Associations::Builder::BelongsTo
build()public
No documentation available.
# File activerecord/lib/active_record/associations/builder/belongs_to.rb, line 13
def build
reflection = super
add_counter_cache_callbacks(reflection) if options[:counter_cache]
add_touch_callbacks(reflection) if options[:touch]
configure_dependency
reflection
end