Is there an easy way to add a model's base errors to the flash message in the responders gem?
When I try to delete a record with depending children that has dependent: :restrict_with_error
set, then I see an error like "X could not be destroyed", but nothing more.
Inspecting the record, I see that there is an additional error added to base
:
@messages={:base=>["Cannot delete record because dependent children exist"]}, @details={:base=>[{:error=>:"restrict_dependent_destroy.has_many", :record=>"children"}]
Is there an easy way to append base errors to the flash message?