Sha256: 09cf82a446969824637f672452be4e9da30e70ca60d1482fdb2712c12e1ae182

Contents?: true

Size: 437 Bytes

Versions: 12

Compression:

Stored size: 437 Bytes

Contents

module LinkThumbnailer
  module Generators
    class InstallGenerator < ::Rails::Generators::Base

      source_root File.expand_path('../../templates', __FILE__)

      desc 'Creates a LinkThumbnailer initializer for your application.'

      def install
        route "use_link_thumbnailer"
      end

      def copy_initializer
        template 'initializer.rb', 'config/initializers/link_thumbnailer.rb'
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
link_thumbnailer-1.1.2 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.1.1 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.1.0 lib/generators/link_thumbnailer/install_generator.rb
rcarvalho-link_thumbnailer-1.0.9.1 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.9 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.8 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.7 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.6 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.5 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.4 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.3 lib/generators/link_thumbnailer/install_generator.rb
link_thumbnailer-1.0.2 lib/generators/link_thumbnailer/install_generator.rb