Sha256: 5aa991cfc2d99870af8decf20221c8117766c41994b65de936b1e5961f58807b
Contents?: true
Size: 456 Bytes
Versions: 66
Compression:
Stored size: 456 Bytes
Contents
require 'rails/generators' module ForestLiana class InstallGenerator < Rails::Generators::Base desc 'Forest Rails Liana installation generator' def install secret_key = ask('What\'s your project secret key?') route("mount ForestLiana::Engine => '/forest'") initializer 'forest_liana.rb' do "ForestLiana.secret_key = '#{secret_key}'\nForestLiana.auth_key = '#{SecureRandom.urlsafe_base64}'" end end end end
Version data entries
66 entries across 66 versions & 1 rubygems