Class: Consently::Generators::ConsentLogGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Consently::Generators::ConsentLogGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/consently/consent_log/consent_log_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
13 14 15 |
# File 'lib/generators/consently/consent_log/consent_log_generator.rb', line 13 def create_migration_file migration_template "create_consently_consent_records.rb", "db/migrate/create_consently_consent_records.rb" end |
#show_next_steps ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/generators/consently/consent_log/consent_log_generator.rb', line 17 def show_next_steps say <<~TEXT Next: 1. rails db:migrate 2. mount Consently::Engine => "/consently" # config/routes.rb 3. c.log_consents = true # config/initializers/consently.rb TEXT end |