Skip to content

ezprivacy

Andreas Dausenau edited this page Apr 13, 2022 · 2 revisions

ezprivacy - generator

This generator ejects all files needed to edit the privacy policy from the engine to your application.

rails generate ez_on_rails:ezprivacy

The following steps are executed by the generator

1. Copy the controller

  • The controller holding the action to show the privacy policy is located in app/controllers/privacy_policy_controller.rb

2. Copy the view

  • The view showing the privacy policy is located in app/views/privacy_policy

3. Copy the locales

  • The i18n locale files are located in config/locales/privacy_policy.en.yml and config/locales/privacy_policy.de.yml