libertarian-party/partynest

View on GitHub
app/policies/settings/appearance_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Settings::AppearancePolicy < ApplicationPolicy
  def update?
    !!account
  end

  def permitted_attributes_for_update
    %i[timezone locale].freeze
  end
end