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.121 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.120 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.119 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.118 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.117 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.116 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.115 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.113 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.112 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.111 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.110 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.109 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.108 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.106 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.105 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.104 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.103 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.102 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.101 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.100 app/policies/renalware/hd/dna_session_policy.rb