Class: AttachmentMagick::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AttachmentMagick::Generators::InstallGenerator
- Defined in:
- lib/generators/attachment_magick/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/generators/attachment_magick/install_generator.rb', line 6 def copy_initializer directory "public/" route "match '/media/*dragonfly', :to => Dragonfly[:images]" route "post 'attachment_magick/images', :to => 'attachment_magick/images#create'" route "post 'attachment_magick/images/update_sortable', :to => 'attachment_magick/images#update_sortable'" route "delete 'attachment_magick/images/:id/:data_attachment', :to => 'attachment_magick/images#destroy'" end |