Project

General

Profile

Bug #25908

Unable to create a new setting with the shortcut syntax

Added by Avi Sharvit about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Settings
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

It is impossible to create a new setting by doing `Setting[:foo] = "bar"`.

  • If `Setting[:foo]` already exists, it will work well and will update the setting value.
  • If `Setting[:foo]` does not exist, it will throw an error saying `description` and `default` are mandatory fields.

Associated revisions

Revision daf0a394 (diff)
Added by Avi Sharvit about 4 years ago

Fixes #25908 - Remove setting creation shortcut

History

#1 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6427 added

#2 Updated by Avi Sharvit about 4 years ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Tomer Brisker almost 4 years ago

  • Category changed from Rails to Settings
  • Fixed in Releases 1.22.0 added

Also available in: Atom PDF