Sha256: 5d2791d7ee837a39fcc4bbb7608b0c8c634dfbd49d0ca0b58894c7b8e23a928f
Contents?: true
Size: 533 Bytes
Versions: 4
Compression:
Stored size: 533 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::Trails::UrlStore.secret = '#{SecureRandom.hex(64)}'} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems