Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acts_as_archive fails silently #31

Open
christianhellsten opened this issue May 15, 2011 · 1 comment
Open

acts_as_archive fails silently #31

christianhellsten opened this issue May 15, 2011 · 1 comment

Comments

@christianhellsten
Copy link

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.

@elmatou
Copy link
Collaborator

elmatou commented Jun 15, 2011

Same as issues #21 & #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants