mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-30 11:24:21 +01:00
15 lines
228 B
Ruby
15 lines
228 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Pundit Additional context to authorize getting a parameter
|
|
class SettingContext
|
|
attr_reader :name
|
|
|
|
def initialize(name)
|
|
@name = name
|
|
end
|
|
|
|
def policy_class
|
|
SettingPolicy
|
|
end
|
|
end
|