Hey, While it's not doing exactly the same as attr_accessible for AR, you could have a look at
http://github.com/snusnu/dm-is-protectable It was inspired by Bruce Peren's model_security gem from back in the days, and lets you specify what model attributes can be read/written in a very fine grained way. cheers snusnu On Sat, Feb 13, 2010 at 16:18, casual <kab...@gmail.com> wrote: > Right now that isn't a part of DM, you can set :writer => :protected > on a property but that makes the writer method protected in the model > which is different from how attr_accessible works in AR. There might > be a plugin for it somewhere, personally I just have a local module > that adds the functionality to my code base. > > On Feb 11, 8:56 am, special K <noy...@gmail.com> wrote: >> How I can forbid pass some object params from hash (in new and update) >> and set it only by method= ? > > -- > 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. > > -- 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.