lib/pluck_all.rb in pluck_all-1.2.3 vs lib/pluck_all.rb in pluck_all-1.2.4
- old
+ new
@@ -74,10 +74,11 @@
@pluck_all_uploaders.each do |key, uploader|
hash = {}
@pluck_all_cast_need_columns.each{|k| hash[k] = attributes[k] } if @pluck_all_cast_need_columns
obj = @pluck_all_cast_klass.new(hash)
obj[key] = attributes[key_s = key.to_s]
- attributes[key_s] = obj.send(:_mounter, key).uploader #uploaders.first
+ #https://github.com/carrierwaveuploader/carrierwave/blob/87c37b706c560de6d01816f9ebaa15ce1c51ed58/lib/carrierwave/mount.rb#L142
+ attributes[key_s] = obj.send(key)
end
end
return attributes
end
end