Jason Lee
|
0849bb203e
Add Middleware for only enable RequestCache in Rails request context. #219, #182
|
3 years ago |
Jason Lee
|
5109c9c4f7
Fix #215 keep scope method compatible with ActiveRecord scope
|
3 years ago |
Jason Lee
|
81019f4f5f
Add optional `scope` method to allows us grouping fields on if we need.
|
3 years ago |
Jason Lee
|
8a297e2251
Allows define field for assignment more options, and then you can get option by Setting.get_field.
|
3 years ago |
Jason Lee
|
df0dda5f5e
Allows call key in Setting instance to support use keys in ActionView helpers.
|
3 years ago |
Jason Lee
|
1571f6de6e
Fix #211 support Proc default value for readonly field.
|
3 years ago |
Jason Lee
|
1d40d94e16
Fix _convert_string_to_typeof_value for avoid use eval.
|
3 years ago |
Jason Lee
|
6d7f3495d1
Avoid allocate string on get value
|
4 years ago |
Jason Lee
|
c2d1bb9626
Enable validation on directly assignment.
|
4 years ago |
Jason Lee
|
60d43d0d5d
Add validates option for field define
|
4 years ago |
Jason Lee
|
7dad742792
Fix request_cache for backward compatible with Rails 5.0.x
|
4 years ago |
Jason Lee
|
a5b8f917c9
Use ActiveSupport::CurrentAttributes instead of the RequestStore gem,
|
4 years ago |
Jason Lee
|
b76f73968f
Rescue connect error
|
4 years ago |
Jason Lee
|
812b87f3c2
Allows to use Setting without database connection, fallback to default value.
|
4 years ago |
Jason Lee
|
52bf637c07
Allows use setting, if table was not ready (before migrate), show warning and returns default value
|
4 years ago |
Jason Lee
|
e21f77d833
Fix hash type with indifferent access
|
4 years ago |
Jason Lee
|
5325229514
Add `get_field` method to get option of the setting field
|
4 years ago |
Jason Lee
|
69d61a95cc
Add `editable_keys` to get keys that allow to modify.
|
4 years ago |
Jason Lee
|
5037eb756f
Add Setting.readonly_keys to get all readonly keys
|
4 years ago |
sangnguyen1001
|
390b3a434f
update setting to support Float and BigDecimal
|
4 years ago |
Saiqul Haq
|
8c5d299d25
fix: typo _convert_string_to_typeof_value
|
4 years ago |
Jason Lee
|
18845fc337
Rubocop format
|
5 years ago |
Jason Lee
|
2541a38454
Add `separator` option for speical the separator for Array type
|
5 years ago |
Jason Lee
|
e0b376f725
Fix #166 avoid define method to super class.
|
5 years ago |
Kenneth
|
2b50d87fc7
Fix error message when Rails is not initialized
|
5 years ago |
Jason Lee
|
bfd98ccb36
Use reques_store for storage cache:
|
5 years ago |
Jason Lee
|
09dbfff115
Fix boolean? method result, add gudies for readonly field, guides for how to use in Test
|
5 years ago |
Jason Lee
|
86da79497a
Allow use readonly field before Rails initailze
|
5 years ago |
Jason Lee
|
346ca38b48
Redesign 2.x setting
|
5 years ago |
Jason Lee
|
a0826f2c1f
Use double_quote style
|
6 years ago |