Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

acts_as_archive fails silently #31

Open
christianhellsten opened this Issue · 1 comment

2 participants

Christian Hellsten Marco
Christian Hellsten

Line 49 in acts_as_archive.rb swallows exceptions:
```klass = eval(klass) rescue nil


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:
```gem 'acts_as_archive'

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

Marco
Collaborator

Same as issues #21 & #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.