Class: PaperclipAttributes::Commands::AddPhotoDominantColor

Inherits:
Object
  • Object
show all
Includes:
PaperclipAttributes::Command
Defined in:
lib/paperclip_attributes/commands/add_photo_dominant_color.rb

Instance Method Summary collapse

Instance Method Details

#performObject



6
7
8
9
# File 'lib/paperclip_attributes/commands/add_photo_dominant_color.rb', line 6

def perform
  color = calculate_dominant_color
  set_attribute(:dominant_color, color)
end