Sha256: 25edd392cc7e63ffbc593d75c494c0204f876fd6f77e3ef5df528517637c6cee
Contents?: true
Size: 630 Bytes
Versions: 16
Compression:
Stored size: 630 Bytes
Contents
module AttachmentMagick module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) 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 end end end
Version data entries
16 entries across 16 versions & 1 rubygems