class Flex::Tasks

Public Instance Methods

config_hash() click to toggle source
# File lib/flex/model_tasks.rb, line 9
def config_hash
  @config_hash ||= begin
                     default = {}.extend Struct::Mergeable
                     (Conf.flex_models + Conf.flex_active_models).each do |m|
                       m = eval"::#{m}" if m.is_a?(String)
                       default.deep_merge! m.flex.default_mapping
                     end
                     default.deep_merge(original_config_hash)
                   end
end
Also aliased as: original_config_hash
original_config_hash()

patches the Flex::Tasks#config_hash so it evaluates also the default mapping for models it modifies also the index:create task

Alias for: config_hash