Module: Magic::Store
- Included in:
- ExtCombo, ExtEditorgrid, ExtGrid, ExtPivotgrid
- Defined in:
- lib/extmodules/magic.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/extmodules/magic.rb', line 42 def self.included(base) base.class_eval do define_method :cls_to_store do return if @config[:cls].nil? first_cls = @config[:cls].split(" ").first.to_storeid end alias_method :mod_store, :prepare_config define_method :prepare_config do mod_store rescue "skip" @default_config.merge! :store => cls_to_store unless @config[:cls].nil? end end end |