Sha256: 382007f59f587be7f1050306a10e4418161df45aa90e28734d106bb0e44629f4

Contents?: true

Size: 512 Bytes

Versions: 18

Compression:

Stored size: 512 Bytes

Contents

require 'rails/generators'

module Landable
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      desc 'Creates the Landable initializer and installs the engine route'

      def copy_initializer
        template 'landable.rb', 'config/initializers/landable.rb'
      end

      def add_landable_route
        route 'mount Landable::Engine => \'/\' # move this to the end of your routes block'
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 lib/generators/landable/install_generator.rb
landable-1.13.2 lib/generators/landable/install_generator.rb
landable-1.13.1 lib/generators/landable/install_generator.rb
landable-1.12.3 lib/generators/landable/install_generator.rb
landable-1.12.2 lib/generators/landable/install_generator.rb
landable-1.12.1 lib/generators/landable/install_generator.rb
landable-1.11.1 lib/generators/landable/install_generator.rb
landable-1.11.0 lib/generators/landable/install_generator.rb
landable-1.10.0.rc2 lib/generators/landable/install_generator.rb
landable-1.10.0.rc1 lib/generators/landable/install_generator.rb
landable-1.9.2 lib/generators/landable/install_generator.rb
landable-1.9.1 lib/generators/landable/install_generator.rb
landable-1.9.0 lib/generators/landable/install_generator.rb
landable-1.9.0.rc2 lib/generators/landable/install_generator.rb
landable-1.9.0.rc1 lib/generators/landable/install_generator.rb
landable-1.8.0 lib/generators/landable/install_generator.rb
landable-1.7.1.rc1 lib/generators/landable/install_generator.rb
landable-1.7.0 lib/generators/landable/install_generator.rb