Class: PaperclipAttributes::Commands::AddPhotoDominantColor
- Inherits:
-
Object
- Object
- PaperclipAttributes::Commands::AddPhotoDominantColor
- Includes:
- PaperclipAttributes::Command
- Defined in:
- lib/paperclip_attributes/commands/add_photo_dominant_color.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
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 |