As stated in the documentation
http://guides.rubyonrails.org/association_basics.html#association-callbacks:
*If a before_add callback throws an exception, the object does not get
added to the collection*
This way to prevent that save is very ugly.
It would be better to keep the standard of the
Thank you for the suggestion.
All callbacks now are only skipped if an exception is raised and we are
removing the special meaning of false, so I think this behavior correct.
On Tue, Aug 4, 2015 at 4:48 PM Bruno Macabeus bruno.macab...@gmail.com
wrote:
As stated in the documentation