def sitemap_stripped_attributes(key = :default)
      values = {}

      attributes = self.sitemap_attributes(key)
      attributes.each do |pair|

        # we are traversing a Hash in this loop.
        # each item passed to the block is a two-element Array.
        # the first element is a key and the second element is the value.
        # given: {title: :my_title, handler: {action_name: :sitemap_index}}
        # :title would be pair.first
        # :my_title would be pair.last
        # in the second case:
        # :handler would be pair.first
        # the Hash {action_name: :sitemap_index} would be pair.last
        # we want to skip all the dark meat and keep the white meat.
        # therefore, we are only interested in attributes that are on the first level.
        # meaning, simple key/value pairs where the value is a value other than Hash.
        unless pair.last.kind_of?(Hash)
            values[pair.first] = pair.last
        end

      end

      return values
    end
def sitemap_stripped_attributes(key = :default)
      values = {}

      attributes = self.sitemap_attributes(key)
      attributes.each do |pair|

        # we are traversing a Hash in this loop.
        # each item passed to the block is a two-element Array.
        # the first element is a key and the second element is the value.
        # given: {title: :my_title, handler: {action_name: :sitemap_index}}
        # :title would be pair.first
        # :my_title would be pair.last
        # in the second case:
        # :handler would be pair.first
        # the Hash {action_name: :sitemap_index} would be pair.last
        # we want to skip all the dark meat and keep the white meat.
        # therefore, we are only interested in attributes that are on the first level.
        # meaning, simple key/value pairs where the value is a value other than Hash.
        unless pair.last.kind_of?(Hash)
            values[pair.first] = pair.last
        end

      end

      return values
    end
Wrapper method for {#sitemap_attributes sitemap_attributes} that returns a Hash stripped of key/value pairs
 where the value is another Hash.

     # normal
     values = sitemap_attributes("index")
     puts values #=> {:title=>:title, :keywords=>:keywords,
                 #    :description=>:description, :lastmod=>:updated_at,
                 #    :handler=>{:action_name=>:sitemap_index, :first_model=>true}}

     # stripped
     values = sitemap_stripped_attributes("index")
     puts values #=> {:title=>:title, :keywords=>:keywords,
                 #    :description=>:description, :lastmod=>:updated_at}

 @return [Hash]