Sha256: 12bb51ffd2f8ca3b231b62c19f96bb14f067f0e42e9fcf82e3ff4ab6f8ee5ab3

Contents?: true

Size: 484 Bytes

Versions: 24

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

# generado con pg_rails

class EmailLogPolicy < ApplicationPolicy
  class Scope < ApplicationPolicy::Scope
    # def resolve
    #   if policy.acceso_total?
    #     scope.all
    #   else
    #     scope.none
    #   end
    # end
  end

  # def puede_editar?
  #   acceso_total? && !record.readonly?
  # end

  # def puede_crear?
  #   acceso_total? || user.asesor?
  # end

  # def puede_borrar?
  #   acceso_total? && !record.readonly?
  # end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.26 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.25 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.24 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.24.pre.5 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.24.pre.4 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.24.pre.3 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.23 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.22 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.22.pre.3 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.22.pre.2 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.22.pre.1 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21.pre.11 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21.pre.10 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21.pre.9 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21.pre.8 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21.pre.7 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21.pre.6 pg_engine/app/policies/email_log_policy.rb
pg_rails-7.6.21.pre.5 pg_engine/app/policies/email_log_policy.rb