def seo_data
      if @seo_data.nil?
        Rails.configuration.seo.each do |key, value|
          regex = Regexp.new(value["regex"]).match(request.path)

          unless regex.nil?
            data = Rails.configuration.seo[key]
            fallback = data["parent"].blank? ? seo_default : seo_default.merge(Rails.configuration.seo[data["parent"]])

            unless data["model"].blank?
              response = seo_dynamic(data["model"], regex[1..(regex.size - 1)])
              data = response.nil? ? {} : response
            end

            @seo_data = fallback.merge(data)
          end
        end
      end

      @seo_data ||= seo_default
    end
def seo_data
      if @seo_data.nil?
        Rails.configuration.seo.each do |key, value|
          regex = Regexp.new(value["regex"]).match(request.path)

          unless regex.nil?
            data = Rails.configuration.seo[key]
            fallback = data["parent"].blank? ? seo_default : seo_default.merge(Rails.configuration.seo[data["parent"]])

            unless data["model"].blank?
              response = seo_dynamic(data["model"], regex[1..(regex.size - 1)])
              data = response.nil? ? {} : response
            end

            @seo_data = fallback.merge(data)
          end
        end
      end

      @seo_data ||= seo_default
    end
Returns SEO data as defined in in seo.json