SafeDeleted

This is only simple gem for updating data from active to inactive and get data based on active or inactive.

Usage

Make sure your model have field is_active with type boolean.

Installation

Add this line to your application's Gemfile:

gem 'safe_deleted'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install safe_deleted

add your model or in application_record.rb :

class ApplicationRecord < ActiveRecord::Base
  include SafeDeleted::ActsAsSafeDeleted

  self.abstract_class = true
end

License

The gem is available as open source under the terms of the MIT License.