Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

animator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animator

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Animator

Inspired by the elegance of PaperTrail, Animator is a cleanly namespaced ActiveRecord plugin that hooks into the existing model life-cycle allowing you to to restore (Animable#reanimate), query (Animable.inanimate), and inspect (Animable#divine) destroyed objects including associations without the tedium and ugliness of default scopes, monkey-patched methods, and complex callbacks.

Getting Started

Animator is opinionated software that protects every model in the application right out of the box.

Add it to your Gemfile and run the bundle command.

gem 'animator'

Once the gem is installed, run the animator:install generator to create the necessary migration and default initializer.

rails g animator:install

Note: To selectively enable Animator, delete the initializer in config/initializers/animator.rb and include Animator::Animable on the desired models manually.

Finally, the database must be migrated to create the eraminhos table before Animator will work properly.

rake db:migrate

Note: In the very unlikely event that eraminhos needs to be preserved for use in the application, Animator may be configured to use an alternative table name by editing the migration and appending Animator::Eraminho.table_name = 'alternative_table_name_for_eraminhos' to the initializer.

FAQs

Package last updated on 23 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc