README.md in tramway-0.4 vs README.md in tramway-0.4.1
- old
+ new
@@ -247,9 +247,27 @@
end
end
end
```
+### Form inheritance
+
+Tramway Form supports inheritance of `properties`
+
+**Example**
+
+```ruby
+class UserForm < TramwayForm
+ properties :email, :password
+end
+
+class AdminForm < UserForm
+ properties :permissions
+end
+
+AdminForm.properties # returns [:email, :password, :permissions]
+```
+
### Make flexible and extendable forms
Tramway Form properties are not mapped to a model. You're able to make extended forms.
*app/forms/user_form.rb*