def sitemap_attributes(key = :default)
      key = key.blank? ? :default : key.to_sym

      # if the key exists and has a Hash value, cool.  Otherwise, go back to :default.
      # self.class.sitemap_attributes should ALWAYS return a Hash, so, no need to test for that.
      # however, key may or may not be a Hash.  should test for that.
      unless self.class.sitemap_attributes[key].kind_of?(Hash)
        key = :default
      end

      # the :default Hash SHOULD ALWAYS be there.  If not, this might cause an exception!!
      return self.class.sitemap_attributes[key]
    end
def sitemap_attributes(key = :default)
      key = key.blank? ? :default : key.to_sym

      # if the key exists and has a Hash value, cool.  Otherwise, go back to :default.
      # self.class.sitemap_attributes should ALWAYS return a Hash, so, no need to test for that.
      # however, key may or may not be a Hash.  should test for that.
      unless self.class.sitemap_attributes[key].kind_of?(Hash)
        key = :default
      end

      # the :default Hash SHOULD ALWAYS be there.  If not, this might cause an exception!!
      return self.class.sitemap_attributes[key]
    end
Returns a Hash associated with a key.  The Hash represents all of the attributes for
 a given action name on a controller.

     acts_as_sitemap :index, title: "my title"   # index is the key
     sitemap_attributes("index")                 # index is the key

 @return [Hash]