You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: