rich icon indicating copy to clipboard operation
rich copied to clipboard

Fixed undefined method 'rich_file='

Open Ammet opened this issue 9 years ago • 4 comments

With new commits

Ammet avatar Feb 15 '16 10:02 Ammet

Is it working on both, Paperclip and Carrierwave?

iduuck avatar Feb 23 '16 12:02 iduuck

Not tested for Carrierwave.

Ammet avatar Feb 23 '16 12:02 Ammet

Is it possible that you test this with Carrierwave? Because I think the include Backends::PaperClip will bomb CarrierWave support.

iduuck avatar Feb 23 '16 12:02 iduuck

FYI if you want to fix this in an existing code base you can use the following code in an initializer

module Rich
  class RichFile < ActiveRecord::Base
    include Backends::Paperclip
  end

  module Backends
    module Paperclip
      Rich::RichFile.send(:include, Backends::Paperclip)
    end
  end
end

jdejong avatar Dec 14 '17 20:12 jdejong