Sha256: a0257db3aa841115682c795a50bffb18fe14ecf82918c8657df99cd0f7e1eb24
Contents?: true
Size: 341 Bytes
Versions: 4
Compression:
Stored size: 341 Bytes
Contents
module CspReport class MountGenerator < Rails::Generators::Base argument :namespace, type: :string, default: 'csp' desc "Adds route to the csp_report resource" def setup_route route "mount CspReport::Engine, at: '#{urlNamespace}'" end private def urlNamespace namespace.underscore end end end
Version data entries
4 entries across 4 versions & 1 rubygems