Groups
Groups
Sign in
Groups
Groups
DataMapper
Conversations
About
Send feedback
Help
How to force an update of a model
24 views
Skip to first unread message
Philipp Kursawe
unread,
Jan 17, 2012, 7:17:05 PM
1/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DataMapper
Given this model
class Slot
property :dongle_name, String
def comment
dongle_name[42..62]
end
def comment=(c)
dongle_name[42..62] = c[0..62-42]
end
end
How can I mark the model for update when comment= is called?
slot.comment = "test"
slot.dirty? => false
Reply all
Reply to author
Forward
0 new messages