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