Sha256: bb4753acb7b31f42e4e358c5626bf41d1874c0ab8a1790a4b52a2b1fe0d93d08
Contents?: true
Size: 651 Bytes
Versions: 8
Compression:
Stored size: 651 Bytes
Contents
require 'rails/generators' require 'rails/generators/base' module Rack module DevMark class InstallGenerator < ::Rails::Generators::Base namespace 'rack:dev-mark:install' desc "Install rack-dev-mark." def insert_enable insert_into_file target_path, after: "< Rails::Application\n" do <<-EOS # Enable rack-dev-mark config.rack_dev_mark.enable = !Rails.env.production? # Customize themes if you want to do so # config.rack_dev_mark.theme = [:title, :github_fork_ribbon] EOS end end private def target_path 'config/application.rb' end end end end
Version data entries
8 entries across 8 versions & 1 rubygems