Skip to content

v2.3.1

Compare
Choose a tag to compare
@huacnlee huacnlee released this 08 Jul 07:23
· 111 commits to main since this release
  • 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.