module Ancestry
Constants
- VERSION
Public Class Methods
default_update_strategy()
click to toggle source
@!default_update_strategy
@return [Symbol] the default strategy for updating ancestry
The value changes the default way that ancestry is updated for associated records
:ruby (default and legacy value) Child records will be loaded into memory and updated. callbacks will get called The callbacks of interest are those that cache values based upon the ancestry value :sql (currently only valid in postgres) Child records are updated in sql and callbacks will not get called. Associated records in memory will have the wrong ancestry value
# File lib/ancestry.rb, line 30 def self.default_update_strategy @@default_update_strategy end
default_update_strategy=(value)
click to toggle source
# File lib/ancestry.rb, line 34 def self.default_update_strategy=(value) @@default_update_strategy = value end