Sha256: f5ef4a610e96bfe97d32ff8c52450d846b914769bed7f041fec94faab3752353

Contents?: true

Size: 209 Bytes

Versions: 28

Compression:

Stored size: 209 Bytes

Contents

require_dependency "renalware/patients"

module Renalware
  module Patients
    class BookmarkPolicy < BasePolicy
      def destroy?
        record.user == Patients.cast_user(user)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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