Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Mention mass-assignment in README

  • Loading branch information...
commit 0d72026a36066c0ce71ffbf12a2234872d8134ad 1 parent b9e0a9b
@solnic authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
5 README.md
@@ -51,6 +51,11 @@ user.age = '28' # => 28
user.age.class # => Fixnum
user.birthday = 'November 18th, 1983' # => #<DateTime: 1983-11-18T00:00:00+00:00 (4891313/2,0/1,2299161)>
+
+# mass-assignment
+user.attributes = { :name => 'Jane', :age => 21 }
+user.name # => "Jane"
+user.age # => 21
```
### Using Virtus with Modules
Please sign in to comment.
Something went wrong with that request. Please try again.