I have added a small method for checking if an object can be destroyed
by checking if its associations marked as dependent restrict are empty
or not. Since it seems something common to do, I wanted to ask if you
think it is worth adding it to ActiveRecord, in which case I can fork
it and add the change (as well as tests and doc), as described in
http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html

The gist for the monkeypatch I am doing now in the app is
https://gist.github.com/1710839

My apologies if this is not the appropriate channel for discussing
this. If it is not, I would appreciate some advice regarding where to
ask this question or how to proceed.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en.

Reply via email to