Class: RailsAdmin::Config::Fields::Types::MultipleCarrierwave::CarrierwaveAttachment

Inherits:
RailsAdmin::Config::Fields::Types::MultipleFileUpload::AbstractAttachment show all
Defined in:
lib/rails_admin/config/fields/types/multiple_carrierwave.rb

Instance Attribute Summary

Attributes inherited from RailsAdmin::Config::Fields::Types::MultipleFileUpload::AbstractAttachment

#value

Instance Method Summary collapse

Methods inherited from RailsAdmin::Config::Fields::Types::MultipleFileUpload::AbstractAttachment

#initialize

Methods included from Configurable

#has_option?, #register_deprecated_instance_option, #register_instance_option

Methods included from Proxyable

#bindings, #bindings=, #with

Constructor Details

This class inherits a constructor from RailsAdmin::Config::Fields::Types::MultipleFileUpload::AbstractAttachment

Instance Method Details

#resource_url(thumb = false) ⇒ Object


23
24
25
26
# File 'lib/rails_admin/config/fields/types/multiple_carrierwave.rb', line 23

def resource_url(thumb = false)
  return nil unless value
  thumb.present? ? value.send(thumb).url : value.url
end