einzige / sneaky-save

Allows to update complex objects without triggering validations or callbacks.
45 stars 30 forks source link

sneaky-save

Gem Version Build Status

ActiveRecord extension. Allows to save record without calling callbacks and validations.

Installing

$ gem install sneaky-save

Or put in your gemfile for latest version:

gem 'sneaky-save', git: 'git://github.com/einzige/sneaky-save.git'

Using

# Update. Returns true on success, false otherwise.
existing_record.sneaky_save

# Insert. Returns true on success, false otherwise.
Model.new.sneaky_save

# Raise exception on failure.
record.sneaky_save!

Running specs

Contributing to sneaky-save