Class: RailsAdmin::Config::Fields::Types::Carrierwave
- Inherits:
-
FileUpload
- Object
- Base
- FileUpload
- RailsAdmin::Config::Fields::Types::Carrierwave
- Defined in:
- lib/rails_admin/config/fields/types/carrierwave.rb
Instance Attribute Summary
Attributes inherited from Base
#abstract_model, #defined, #name, #order, #parent, #properties, #root, #section
Attributes included from Proxyable
Instance Method Summary collapse
Methods inherited from FileUpload
Methods inherited from Base
#association?, #editable?, #errors, #html_default_value, #initialize, #inverse_of, #method_name, #optional, #optional=, #optional?, #type, #type_css_class, #value, #virtual?
Methods included from Groupable
Methods included from Hideable
#hidden?, #hide, included, #show
Methods included from Configurable
#has_option?, included, #register_deprecated_instance_option, #register_instance_option
Methods included from Proxyable
Constructor Details
This class inherits a constructor from RailsAdmin::Config::Fields::Base
Instance Method Details
#resource_url(thumb = false) ⇒ Object
23 24 25 26 |
# File 'lib/rails_admin/config/fields/types/carrierwave.rb', line 23 def resource_url(thumb = false) return nil unless (uploader = bindings[:object].send(name)).present? thumb.present? ? uploader.send(thumb).url : uploader.url end |