Sha256: f0be1bcbc27d64dff1e9c73d80ed428ac45d9e59a14ca90b12f55e438daf0fbf

Contents?: true

Size: 236 Bytes

Versions: 104

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module HD
    class DNASessionPolicy < BasePolicy
      def destroy?
        edit?
      end

      def edit?
        record.persisted? && !record.immutable?
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
renalware-core-2.0.35 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.34 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.33 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.32 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.31 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.30 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.28 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.27 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.26 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.25 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.24 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.23 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.22 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.21 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.20 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.18 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.17 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.16 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.15 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.14 app/policies/renalware/hd/dna_session_policy.rb