is this intentional?

In rails and active record land. We can do this @model = Model.new
(params[:model]) and never have to worry checking for nil.

Now I have to do this @model = Model.new(params[:model] || {})

Thanks.

--

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


Reply via email to