Allow mass assignment of user preference keys and values

This commit is contained in:
Tom Hughes 2012-11-04 14:40:24 +00:00
parent cb6eb65466
commit 6211895f6e

View file

@ -6,6 +6,8 @@ class UserPreference < ActiveRecord::Base
validates_length_of :k, :within => 1..255
validates_length_of :v, :within => 1..255
attr_accessible :k, :v
# Turn this Node in to an XML Node without the <osm> wrapper.
def to_xml_node
el1 = XML::Node.new 'preference'