currently some specs with xml serializing in dm-serializer are broken
to the new naming convention of reference keys.

secondly when I have a resource like

module Ixtlan
  class Group
    include DataMapper::Resource

    def self.default_storage_name
      "Group"
    end
    def self.name
      "Group"
    end
    def self.to_s
      "Group"
    end
  end
end

I need besides the default_storage_name also self.name for xml
serializer to use the right element name (group) and self.to_s to
produce the collections name (groups).

and finally the naming convention for producing the tag name is
different from producing the storage names. take
module Ixtlan
  class Group
  ...
  end
end
which uses as default storage_name "ixtlan_groups" and as xml element
name it will be "ixtlan-group" or "ixtlan-groups" for a collection
tag.

I personally would like to see things more uniform:
derive the xml element name from the storage_name use singular and
plural for single xml elements and collection elements respectively.

maybe there was a reason for the current situation which I try to find
out before I prepare a patch for this.

regards Kristian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to