Module: Sequel::Plugins::Composition::InstanceMethods

Defined in:
lib/sequel/plugins/composition.rb

Instance Method Summary collapse

Instance Method Details

#compositionsObject

Cache of composition objects for this class.



153
154
155
# File 'lib/sequel/plugins/composition.rb', line 153

def compositions
  @compositions ||= {}
end

#freezeObject

Freeze compositions hash when freezing model instance.



158
159
160
161
# File 'lib/sequel/plugins/composition.rb', line 158

def freeze
  compositions.freeze
  super
end