Class Index [+]

Quicksearch

Sequel::Plugins::Composition::InstanceMethods

Public Instance Methods

_refresh(ds) click to toggle source

Clear the cached compositions when refreshing.

     # File lib/sequel/plugins/composition.rb, line 152
152:         def _refresh(ds)
153:           super
154:           compositions.clear
155:         end
before_save() click to toggle source

For each composition, set the columns in the model class based on the composition object.

     # File lib/sequel/plugins/composition.rb, line 159
159:         def before_save
160:           @compositions.keys.each{|n| instance_eval(&model.compositions[n][:decomposer])} if @compositions
161:           super
162:         end
compositions() click to toggle source

Cache of composition objects for this class.

     # File lib/sequel/plugins/composition.rb, line 165
165:         def compositions
166:           @compositions ||= {}
167:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.