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
moduleCarrierwavemoduleBase64# Railtie class to load the carrierwave-base64 adapters# Loads adapters for ActiveRecord and MongoidclassRailtie < Rails::RailtieActiveSupport.on_load:active_recorddoActiveRecord::Base.extendCarrierwave::Base64::AdapterendActiveSupport.on_load:mongoiddoMongoid::Document::ClassMethods.includeCarrierwave::Base64::AdapterendActiveSupport.on_load:nobrainerdoputs("extending NoBrainer ...")NoBrainer::Document::ClassMethods.includeCarrierwave::Base64::Adapterendendendend
I have found ActiveSupport.onload :nobrainer when i use in console this command
When I start my server, I can’t see the puts message, and I have the error message “mount_base64_uploader not defined” like if ActiveSupport.on_load(:nobrainer) was not executed.
Am I missing something? Can you please help me?
Thanks for your help.
The text was updated successfully, but these errors were encountered:
Hi,
i would like adapt this gem with noBrainer https://github.com/y9v/carrierwave-base64 to upload a file in Base64.
So, i update this file https://github.com/y9v/carrierwave-base64/blob/master/lib/carrierwave/base64/railtie.rb
and here we can see what has been changed
I have found
ActiveSupport.onload :nobrainer
when i use in console this commandand when I use
nobrainer doesn’t seem to be loaded.
Moreover, I’m using the class
NoBrainer::Document::ClassMethods
like it is used in https://github.com/nviennot/carrierwave-nobrainer/blob/master/lib/carrierwave-nobrainer.rb line 150.When I start my server, I can’t see the puts message, and I have the error message “mount_base64_uploader not defined” like if
ActiveSupport.on_load(:nobrainer)
was not executed.Am I missing something? Can you please help me?
Thanks for your help.
The text was updated successfully, but these errors were encountered: