Allow mass assignment of user preference keys and values
This commit is contained in:
parent
cb6eb65466
commit
6211895f6e
1 changed files with 2 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue