ユーザー設定の複数の項目を反転 (#639)
This commit is contained in:
parent
fcb97f6125
commit
eee13b3f5f
9 changed files with 45 additions and 25 deletions
|
@ -18,4 +18,8 @@ class UserSettings::Namespace
|
|||
@definitions[s.key] = s
|
||||
end
|
||||
end
|
||||
|
||||
def setting_inverse_alias(key, original_key)
|
||||
@definitions[key] = @definitions[original_key].inverse_of(key)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue