Method: ApplicationPolicy#show?

Defined in:
lib/generators/pundit/install/templates/application_policy.rb

#show?Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/generators/pundit/install/templates/application_policy.rb', line 13

def show?
  scope.where(:id => record.id).exists?
end