method
build
rails latest stable - Class:
ActiveRecord::Associations::Builder::BelongsTo
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