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 <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
