Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Sep 24, 2013
1 parent 0c932a0 commit 55ca44a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -121,13 +121,13 @@ inclusion in your classes:

```ruby
module Name
include Virtus.model
include Virtus.module

attribute :name, String
end

module Age
include Virtus.model
include Virtus.module { |config| config.coerce = false }

attribute :age, Integer
end
Expand All @@ -136,7 +136,7 @@ class User
include Name, Age
end

user = User.new(:name => 'John', :age => '30')
user = User.new(:name => 'John', :age => 30)
```

### Dynamically Extending Instances
Expand Down

0 comments on commit 55ca44a

Please sign in to comment.