Sha256: 3593a8831956c11577692a8a2882802d92a4830a2169e84b2c81e1197ede1d51
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require 'rails_admin/config/fields' require 'rails_admin/config/fields/types' require 'rails_admin/config/fields/types/file_upload' RailsAdmin::Config::Fields.register_factory do |parent, properties, fields| if defined?(::CarrierWave) if (model = parent.abstract_model.model).kind_of?(CarrierWave::Mount) && model.uploaders.include?(properties[:name]) fields << RailsAdmin::Config::Fields::Types.load(:carrierwave).new(parent, properties[:name], properties) true else false end else false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elucid-rails_admin-0.0.1 | lib/rails_admin/config/fields/factories/carrierwave.rb |