Commit cfbc5820c52b7f681b33f32f0fba4b8dd60fc7b5
1 parent
a3972626
Exists in
master
add .travis.yml
Showing
2 changed files
with
12 additions
and
1 deletions
Show diff stats
README.md
1 | 1 | # HasMagicFields |
2 | 2 | [](http://badge.fury.io/rb/has_magic_fields) |
3 | +[](https://travis-ci.org/ikeqiao/has_magic_fields) | |
3 | 4 | |
4 | 5 | Allows the addition of custom "magic" fields and attributes on a per-model |
5 | 6 | or per-parent-model basis. This is useful for situations where custom fields are |
... | ... | @@ -140,7 +141,7 @@ end |
140 | 141 | |
141 | 142 | parent @account also haven't salary magic field |
142 | 143 | |
143 | -## get all magic fields | |
144 | +## Get All Magic Fields | |
144 | 145 | ```ruby |
145 | 146 | @account.magic_fields #get all meagic_fields both self and children |
146 | 147 | @account.magic_fields_with_scoped #get all meagic_fields self | ... | ... |