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

Version Path
attachment_magick-0.3.6 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.3.5 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.3.4 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.3.3 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.3.2 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.3.1 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.3 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.7 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.6 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.5 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.4 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.3 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.2 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.1 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.2.0 lib/generators/attachment_magick/install_generator.rb
attachment_magick-0.1.0 lib/generators/attachment_magick/install_generator.rb