Sha256: 9e21899b7eff6bb4834a5a510bfd373925cc2bb17a29066d4c4fdcfe449f8b4f

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

module ForestLiana
  class BaseGetter
    def get_resource
      use_act_as_paranoid = @resource.instance_methods
        .include? :really_destroyed?

      # NOTICE: Do not unscope with the paranoia gem to prevent the retrieval
      #         of deleted records.
      use_act_as_paranoid ? @resource : @resource.unscoped
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forest_liana-1.7.7 app/services/forest_liana/base_getter.rb