Flockingbird/roost

View on GitHub
app/web/helpers/policy_helpers.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require 'app/web/policies/contact_policy'

##
# Holds the may_x? helpers for views and controllers, that wrap the policies
module PolicyHelpers
  def may_add_contact?
    ContactPolicy.new(current_member, contact).add?
  end
end