Class: PaperclipAttributesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/paperclip_attributes/paperclip_attributes_generator.rb

Constant Summary collapse

VALID_ATTRIBUTES =
%w(dimensions color).freeze

Instance Method Summary collapse

Instance Method Details

#generate_migrationObject



10
11
12
# File 'lib/generators/paperclip_attributes/paperclip_attributes_generator.rb', line 10

def generate_migration
  generate "migration #{migration_name} #{migration_attributes}"
end