Method: Sequel::Plugins::Subclasses::ClassMethods#freeze_descendants
- Defined in:
- lib/sequel/plugins/subclasses.rb
#freeze_descendants ⇒ Object Also known as: freeze_descendents
Freeze all descendent classes. This also finalizes the associations for those classes before freezing.
72 73 74 |
# File 'lib/sequel/plugins/subclasses.rb', line 72 def freeze_descendants descendants.each(&:finalize_associations).each(&:freeze) end |