v2.3.1
- Add
get_field
method to get field option.
class Setting
field :admin_emails, type: :array, default: "huacnlee"
end
Setting.get_field(:admin_emails)
=> { key: "admin_emails", type: :array, default: "[email protected]", readonly: false }
- Add
editable_keys
to get keys that allow to modify. - Add
readonly_keys
to get readonly keys.