0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-15 14:22:53 +01:00
Dieser Commit ist enthalten in:
Faizaan Gagan 2021-06-02 11:21:45 +05:30
Ursprung 310a3b0328
Commit 07f7e285ec
2 geänderte Dateien mit 7 neuen und 13 gelöschten Zeilen

Datei anzeigen

@ -8,14 +8,15 @@ class CustomWizard::Field
# number: 3
# title: Add the field name to attribute map
# description: The attribute map serves as a global registry for field attributes. Set the
# key as the attribute name and value as an array of properties. Use the properties according to the
# key as the attribute name and value as an array of properties. Use the properties according to
# your usecase. Here's a list and description of each of the properties.
# accessible: The attribute is passed to attr_accessor
# ```
# accessible: The attribute is set as a CustomWizard::Field attr_accessor
# serializable: The attribute is serialized to the client
# permitted: The attribute is permitted to be passed to the admin side controller for saving
# mapped: The attribute is a mapped attributed and is permitted to be passed to the admin side controller for saving
# excluded: The attribute is not initialized in the constructor. This is used
# if the attribute needs a method
# permitted: The attribute is permitted in the admin controller
# mapped: The attribute is mapped and permitted (see above)
# excluded: The attribute is not initialized in the constructor
# ```
##
def self.attribute_map

Datei anzeigen

@ -14,13 +14,6 @@ class CustomWizard::Template
@actions = data['actions'] || []
end
##
# type: step
# number: 4
# title: Our new field is saved to the template
# description: The template is loaded into the wizard model when it is built,
# our attribute has to be present, for it to build properly...
##
def save(opts = {})
@opts = opts