before hooks

21 views
Skip to first unread message

Kenny Stone

unread,
Oct 26, 2011, 2:19:02 PM10/26/11
to DataMapper
Here is my code, almost a copy and paste from the website docs:

https://gist.github.com/1317209

I never see the puts statement.

This is when I run it:

$ ruby post.rb
1 2 3 4 5 done

This seems incredibly basic. What am I doing wrong?

Chris Corbyn

unread,
Oct 27, 2011, 12:51:10 AM10/27/11
to datam...@googlegroups.com
Remove the bang!


The bang! specifically by-passes all hooks.


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


Kenny Stone

unread,
Oct 27, 2011, 1:33:00 PM10/27/11
to datam...@googlegroups.com
Ah, thanks that fixed it.

Kenny
Reply all
Reply to author
Forward
0 new messages