1 class UserPreference < ActiveRecord::Base
2 self.primary_keys = "user_id", "k"
6 validates_length_of :k, :within => 1..255
7 validates_length_of :v, :within => 1..255
9 # Turn this Node in to an XML Node without the <osm> wrapper.
11 el1 = XML::Node.new 'preference'