Module: CarrierWave::Processing::DominantColor
- Defined in:
- lib/carrierwave/processing/dominant_color.rb,
lib/carrierwave/processing/dominant_color/version.rb
Constant Summary collapse
- VERSION =
"2.0.0"
Instance Method Summary collapse
Instance Method Details
#store_dominant_color ⇒ Object
9 10 11 12 |
# File 'lib/carrierwave/processing/dominant_color.rb', line 9 def store_dominant_color colors = Miro::DominantColors.new(current_path).to_hex model.send("dominant_color_#{mounted_as}=", colors.first) end |