Sha256: c25dbfea98df98a34fdacee5328ca08830bf0947f0d4b870166daeebf2ad8f65
Contents?: true
Size: 452 Bytes
Versions: 4
Compression:
Stored size: 452 Bytes
Contents
module CspReport class InitializerInstallGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) argument :namespace, type: :string, default: 'csp' desc "Adds an initializer storing the defined namespace" def setup_namespace template "csp_report_initializer.erb", "config/initializers/csp_report.rb" end private def urlNamespace namespace.underscore end end end
Version data entries
4 entries across 4 versions & 1 rubygems