Class: PaperclipGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- PaperclipGenerator
- Defined in:
- lib/generators/paperclip/paperclip_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/generators/paperclip/paperclip_generator.rb', line 9 def self.source_root @source_root ||= File.('../templates', __FILE__) end |
Instance Method Details
#generate_migration ⇒ Object
13 14 15 |
# File 'lib/generators/paperclip/paperclip_generator.rb', line 13 def generate_migration migration_template "paperclip_migration.rb.erb", "db/migrate/#{migration_file_name}" end |