Sha256: ee69666437b2c5bb034c9a8fea21b28ffed837ffa2121e21a07973366677100f

Contents?: true

Size: 205 Bytes

Versions: 28

Compression:

Stored size: 205 Bytes

Contents

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

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.7 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.5 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.4 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.3 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.2 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.1 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc13 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc11 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc10 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc9 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc8 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc7 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc6 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc5 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc4 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc3 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.rc1 app/policies/renalware/hd/dna_session_policy.rb
renalware-core-2.0.0.pre.beta12 app/policies/renalware/hd/dna_session_policy.rb