app/services/get_page_meta_info.rb
def construct_page_meta_vars
    # Interpolate and set @meta_data
    raw_meta = get_meta_config
    second_level_keys = []
    raw_meta.each do |k, v|
      if v.is_a?(Hash)
        second_level_keys << k
        next
      end

      if v.is_a?(Array)
        v = @custom_meta[k.to_s]
      else
        v =  v % @custom_meta
      end

      @meta_data[k] = v
    end

    second_level_keys.each do |level2|
      @meta_data[level2] = {}
      raw_meta[level2].each do |k, v|
        if v.is_a?(Array)
          v = @custom_meta["#{level2.to_s}_#{k.to_s}"]
        else
          v =  v % @custom_meta
        end
        @meta_data[level2][k] = v
      end
    end

    safe_guard_meta

  end
# Construct page meta variables
#
# Set @meta_data
#
Construct page meta variables
Set @meta_data
Construct page meta variables Set @meta_data
def construct_page_meta_vars
    raw_meta = get_meta_config
    second_level_keys = []
    raw_meta.each do |k, v|
      if v.is_a?(Hash)
        second_level_keys << k
        next
      end
      if v.is_a?(Array)
        v = @custom_meta[k.to_s]
      else
        v =  v % @custom_meta
      end
      @meta_data[k] = v
    end
    second_level_keys.each do |level2|
      @meta_data[level2] = {}
      raw_meta[level2].each do |k, v|
        if v.is_a?(Array)
          v = @custom_meta["#{level2.to_s}_#{k.to_s}"]
        else
          v =  v % @custom_meta
        end
        @meta_data[level2][k] = v
      end
    end
    safe_guard_meta
  end
def construct_page_meta_vars raw_meta = get_meta_config second_level_keys = [ ] raw_meta . each do | k , v | if v . is_a? ( Hash ) second_level_keys << k next end if v . is_a? ( Array ) v = @custom_meta [ k . to_s ] else v = v % @custom_meta end @meta_data [ k ] = v end second_level_keys . each do | level2 | @meta_data [ level2 ] = { } raw_meta [ level2 ] . each do | k , v | if v . is_a? ( Array ) v = @custom_meta [ "#{level2.to_s}_#{k.to_s}" ] else v = v % @custom_meta end @meta_data [ level2 ] [ k ] = v end end safe_guard_meta end
Construct page meta variables
Set @meta_data
Construct page meta variables Set @meta_data
# Interpolate and set @meta_data