Sha256: 2a6a879f942e206ab0429dbaa22a3eb158aa5fcd2793c19836824fd9bde950f0
Contents?: true
Size: 504 Bytes
Versions: 4
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true module RailsMiniProfiler module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) desc 'Install rails-mini-profiler' def install route("mount RailsMiniProfiler::Engine => '/rails_mini_profiler'") template 'rails_mini_profiler.rb.erb', 'config/initializers/rails_mini_profiler.rb' system('rails rails_mini_profiler:install:migrations') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems