Class: PaperclipAttributesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PaperclipAttributesGenerator
- 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_migration ⇒ Object
10 11 12 |
# File 'lib/generators/paperclip_attributes/paperclip_attributes_generator.rb', line 10 def generate_migration generate "migration #{migration_name} #{migration_attributes}" end |