OfficeMomsandDads/scheduler

View on GitHub
app/policies/office_policy.rb

Summary

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

class OfficePolicy < ApplicationPolicy
  def permitted_attributes
    [:name,
     :region,
     { address_attributes: %i(street
                              street2
                              city
                              state
                              postal_code
                              skip_api_validation) }]
  end
end