Sha256: d5ff7e055a43fd1e6124a84c82670c303249366c257e278eac63908cbcca54f9

Contents?: true

Size: 1.42 KB

Versions: 13

Compression:

Stored size: 1.42 KB

Contents

# Cmor::Legal::Frontend
Short description and motivation.

## Usage
How to use my plugin.

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'cmor_legal_frontend'
```

And then execute:
```bash
$ bundle
```

Or install it yourself as:
```bash
$ gem install cmor_legal_frontend
```

## Migrating from rails_eu_gdpr_backend

Install cmor_legal and cmor_legal_frontend.

Move configuration options from config/initializers/eu_gdpr.rb to config/initializers/cmor_legal.rb.

Replace view helper integrations in controllers:

    # old:
    view_helper EuGdpr::ApplicationViewHelper, as: :eu_gdpr_helper

    # new:
    view_helper Cmor::Legal::Frontend::ApplicationViewHelper, as: :legal_helper

Replace view helper calls in views:

    # old:
    eu_gdpr_helper(self)

    # old:
    legal_helper(self)

Update privacy policies:

    Cmor::Legal::PrivacyPolicy.find_each do |model|
      model.update_column(:pathname, "/cmor/legal/")
      model.update_column(:basename, "privacy_policy")
      model.update_column(:body, model.body.gsub(/eu_gdpr_helper\(self\)/, "legal_helper(self)"))
    end

Remove config/initializers/eu_gdpr.rb and config/initializers/eu_gdpr_backend.rb.

Remove rails_eu_gdpr and rails_eu_gdpr_backend from your Gemfile and bundle.

## Contributing
Contribution directions go here.

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cmor_legal_frontend-0.0.60.pre README.md
cmor_legal_frontend-0.0.59.pre README.md
cmor_legal_frontend-0.0.58.pre README.md
cmor_legal_frontend-0.0.57.pre README.md
cmor_legal_frontend-0.0.56.pre README.md
cmor_legal_frontend-0.0.55.pre README.md
cmor_legal_frontend-0.0.54.pre README.md
cmor_legal_frontend-0.0.53.pre README.md
cmor_legal_frontend-0.0.52.pre README.md
cmor_legal_frontend-0.0.51.pre README.md
cmor_legal_frontend-0.0.50.pre README.md
cmor_legal_frontend-0.0.49.pre README.md
cmor_legal_frontend-0.0.48.pre README.md