Sha256: 99f5592e81df9818d566696cd17179a5cfb5fb2c64f95928e0182690034d7e94
Contents?: true
Size: 370 Bytes
Versions: 10
Compression:
Stored size: 370 Bytes
Contents
module Plug class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_initializer_file copy_file 'plug.rb', 'config/initializers/plug.rb' end def mount_engine inject_into_file('config/routes.rb', "\n mount Plug::Engine => '/plug', as: 'plug'\n\n", before: /^end/) end end end
Version data entries
10 entries across 10 versions & 1 rubygems