Sha256: 767e9ee7fb8559a8792e3c820fe97c3b82ff53e882dfbccd1a0073587fff0c87
Contents?: true
Size: 706 Bytes
Versions: 7
Compression:
Stored size: 706 Bytes
Contents
module Kms class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../../../../', __FILE__) def copy_initializers @source_paths = nil # reset it for the find_in_source_paths method Kms::InstallGenerator.source_root(File.expand_path('../templates', __FILE__)) template 'devise.rb', 'config/initializers/devise.rb' template 'dragonfly.rb', 'config/initializers/dragonfly.rb' end def insert_engine_routes route %( mount Kms::Engine => '/kms', as: 'kms' ) end def remove_index_html remove_file 'public/index.html' end private def generate_secret SecureRandom.hex(32) end end end
Version data entries
7 entries across 7 versions & 1 rubygems