Class/Module 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
def _refresh(ds)
  v = super
  compositions.clear
  v
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 160
def before_save
  @compositions.keys.each{|n| instance_eval(&model.compositions[n][:decomposer])} if @compositions
  super
end
compositions() click to toggle source

Cache of composition objects for this class.

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.