Sha256: d1e126eade2a97d9c615f0a337f7d6f1ff8c3234721144edc45acafa2ead2689
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
module EuGdpr module Generators class InstallGenerator < Rails::Generators::Base desc 'Installs the initializer and routes' source_root File.expand_path('../templates', __FILE__) def generate_initializer copy_file 'initializer.rb', 'config/initializers/eu_gdpr.rb' end def generate_routes route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source')) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_eu_gdpr-0.0.4 | lib/generators/eu_gdpr/install/install_generator.rb |