Flowdock
method

_create_record

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: ActiveRecord::CounterCache
_create_record(*) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/counter_cache.rb, line 138
      def _create_record(*)
        id = super

        each_counter_cached_associations do |association|
          if send(association.reflection.name)
            association.increment_counters
            @_after_create_counter_called = true
          end
        end

        id
      end
Register or log in to add new notes.