mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +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
|