Skip to content

Commit

Permalink
Improved Shared Form Model Methods documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Wiklund committed Jul 15, 2014
1 parent 1024a3e commit df5d184
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ You can generate a default model like this by running:

TODO: Add generator

This will add an `ApplicationTransForm` model...

# app/trans_forms/application_trans_form.rb
class ApplicationTransForm < TransForms::FormBase
# ...
end

... that you can use in you Form Models:

class PostForm < ApplicationTransForm
# ...
end

Note that by having a model with the exact name `ApplicationTransForm`, the generator
for new Form Models will by default inherit from that model instead of the `TransForm::FormBase`

## Contributing

1. Fork it ( https://github.com/dannemanne/trans_forms/fork )
Expand Down

0 comments on commit df5d184

Please sign in to comment.