module CarrierWave::Color

Constants

VERSION

Public Instance Methods

store_dominant_color() click to toggle source
# File lib/carrierwave/color.rb, line 5
def store_dominant_color
  color = Detection.dominant_html(current_path)
  model.send "#{mounted_as}_dominant_color=", color
end
store_palette_color(palette = Colorscore::Palette::DEFAULT) click to toggle source
# File lib/carrierwave/color.rb, line 10
def store_palette_color(palette = Colorscore::Palette::DEFAULT)
  color = Detection.dominant_from_palette_html(current_path, palette)
  model.send "#{mounted_as}_palette_color=", color
end