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
|
c85a55396a
Revert test case
|
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
|
f7c92277d8
Add test for default value with block
|
4 years ago |
Jason Lee
|
60d43d0d5d
Add validates option for field define
|
4 years ago |
Jason Lee
|
e21f77d833
Fix hash type with indifferent access
|
4 years ago |
Jason Lee
|
18c6a34975
Add more test for get value for hash field
|
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
|
845be7ae12
add more minitests to cover new logic
|
4 years ago |
Jason Lee
|
fbe3443623
version 2.1.0
|
5 years ago |
Jason Lee
|
2541a38454
Add `separator` option for speical the separator for Array type
|
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 |