From 9df5f730ad35c8c2897ada93ac6c1ed0c412754d Mon Sep 17 00:00:00 2001 From: ssendev Date: Thu, 9 Apr 2015 16:54:44 +0200 Subject: [PATCH] don't overwrite to_jq_upload if exists this allows to define to_jq_upload in the model and use other image uploaders than carrierwave --- app/models/concerns/active_admin_multi_upload/uploadable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/active_admin_multi_upload/uploadable.rb b/app/models/concerns/active_admin_multi_upload/uploadable.rb index f648800..a83a11e 100644 --- a/app/models/concerns/active_admin_multi_upload/uploadable.rb +++ b/app/models/concerns/active_admin_multi_upload/uploadable.rb @@ -20,7 +20,7 @@ def to_jq_upload } end eoruby - class_eval(code) + class_eval(code) unless self.instance_methods.include? :to_jq_upload end end end