softace/paperclip_database

undefined method `const_defined?' for nil:NilClass

Opened this issue · 0 comments

I have a working app that uses papercip_database gem version 2.2.2.

I recently updated to version 2.3.1 and received the following error message:
ActionView::Template::Error (undefined method `const_defined?' for nil:NilClass)

I did not change my code, all I did was upgrade the gem. Anything I'm doing wrong?

I also tried testing it out in the console and received the same error message but pointing to your new code:
from ../gems/paperclip_database-2.3.1/lib/paperclip/storage/database.rb:98 in 'setup_paperclip_file_model'

I'm using rails 3.2.11, ruby 1.9.3, and paperclip 3.5.0

Please let me know if I need to provide additional information.