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

carrierwave_direct not working with rails 6 undefined method 'attr_accessible' #232

Open
ahmdelemam opened this issue May 15, 2020 · 0 comments

Comments

@ahmdelemam
Copy link

ahmdelemam commented May 15, 2020

Ruby Version:- 2.6.3
Rails Version:- 6.0.0.rc1
Carrierwave Version:- 2.0.0.rc
Carrierwave_direct Version:- 2.1.0

I just followed the installation instructions, when I try to add this line to my uploader
include CarrierWaveDirect::Uploader
I got this error
undefined method 'attr_accessible' for #<Class:0x00007fa50823fc80> (NoMethodError) Did you mean? attr_accessor

inline /Users/ahmedelemam/.rvm/gems/ruby-2.6.3/gems/carrierwave_direct-2.1.0/lib/carrierwave_direct/orm/activerecord.rb:35:in `mount_uploader'

We are using attr_accessible :#{column}_key, :remote_#{column}_net_url

@ahmdelemam ahmdelemam changed the title carrierwave_direct not working with rails 6 carrierwave_direct not working with rails 6 undefined method 'attr_accessible' May 15, 2020
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