acts_as_archive icon indicating copy to clipboard operation
acts_as_archive copied to clipboard

acts_as_archive fails silently

Open christianhellsten opened this issue 13 years ago • 1 comments

Line 49 in acts_as_archive.rb swallows exceptions:


I noticed this when I had problems getting my models to work with acts_as_archive. I found out the models failed to load because the models where using code/plugins that had not yet been loaded when the acts_as_archive initializer was triggered. Line 49 made it difficult to find the problem.

My solution was to move this line all the way to the bottom of Gemfile:

I suggest that "rescue nil" is removed. I can provide a patch if required.

christianhellsten avatar May 15 '11 16:05 christianhellsten

Same as issues #21 & #28

elmatou avatar Jun 15 '11 06:06 elmatou