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

COLUMN_TYPE problem #1

Open
stevemadere opened this issue Nov 13, 2014 · 0 comments
Open

COLUMN_TYPE problem #1

stevemadere opened this issue Nov 13, 2014 · 0 comments

Comments

@stevemadere
Copy link

I am not sure if the fault is in hobo_paperclip or in hobo_fields but trying to
initialize an attachment field using hobo_paperclip raises an exception in HoboFields#can_wrap?

The problem is that can_wrap? expects the constant Paperclip::Attachment::COLUMN_TYPE
to be initialized but it is not.

A workaround is to create the following initializer (but it is kind of a hack):

config/initializers/paperclip.rb

Paperclip::Attachment
class Paperclip::Attachment
COLUMN_TYPE ||= nil
end

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

1 participant