Sha256: 98aa62490792e3550d15fdac14ae4fce79eb0f6611cd26541b63b84291f50e56
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
require 'rails/generators' module Gretel class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc "Creates a sample configuration file in config/breadcrumbs.rb" def create_config_file copy_file "breadcrumbs.rb", "config/breadcrumbs.rb" end desc "Creates an initializer with trail secret" def create_initializer initializer "gretel.rb" do %{Gretel::Trail.secret = '#{SecureRandom.hex(64)}'} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems