Skip to content

jefvlamings/globalize-paranoia

 
 

Repository files navigation

Globalize Versioning

Introduction

globalize-paranoia provides an interface between globalize and paranoia

Installation

gem install globalize-paronoia

When using bundler, add this line to your Gemfile:

gem 'globalize-paranoia'

Usage

To add soft deletion support to your model, just add the :paranoia option to your call to translates with the boolean value true. For example:

translates :title, :content, :published, :published_at, paranoia: true

You will also need to have already generated the deleted_at column that paranoia expects. See the paranoia README for more details.

Other gotchas

Please see the tests in test/globalize-paranoia/ for more details.

License

See LICENSE for details.

About

Soft-deletion support for the Globalize library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%