# File lib/familia/redisobject.rb, line 138 def db # Note it's important that we select this value at the last # possible moment rather than in initialize b/c the value # could be modified after that but before this is called. if @opts[:class] && @opts[:class].ancestors.member?(Familia) @opts[:class].db elsif parent? parent.db else self.class.db || @db || 0 end end