mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +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
|