Skip to content

Select which models to become permanent records #92

@mariochavez

Description

@mariochavez

Hi,

I have a case where not all model in my app needs to become permanent_records but the issue is that Permanent Records adds itself to all Activerecords with:

ActiveSupport.on_load(:active_record) do
  ActiveRecord::Base.send :include, PermanentRecords::ActiveRecord
end

My proposal is to have a setting to:

  1. Decide if we want Permanent Records in all models - as it is right now -
  2. Add Permanent Records to only those that need it.

Please let me know if you are willing to accept a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions