Commit cfbc5820c52b7f681b33f32f0fba4b8dd60fc7b5

Authored by ikeqiao
1 parent a3972626
Exists in master

add .travis.yml

Showing 2 changed files with 12 additions and 1 deletions   Show diff stats
.travis.yml 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +language: ruby
  2 +bundler_args: --without development
  3 +
  4 +env:
  5 + - USE_OFFICIAL_GEM_SOURCE=1
  6 +
  7 +rvm:
  8 + - 2.0.0
  9 +
  10 +script: RAILS_ENV=test bundle exec rake spec spec
0 11 \ No newline at end of file
... ...
README.md
1 1 # HasMagicFields
2 2 [![Gem Version](https://badge.fury.io/rb/has_magic_fields.png)](http://badge.fury.io/rb/has_magic_fields)
  3 +[![CI Status](https://travis-ci.org/ikeqiao/has_magic_fields.svg)](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
... ...