Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/varvet/godmin-uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Ramstedt committed May 19, 2015
2 parents 399a9b6 + 579ffbe commit 5a5b6c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ Then, simply use the `uploader` in your form like so:
<%= f.input_field :title %>
<%= f.text_field :body %>
<%= f.uploader :attachment, preview: true %>
<%= f.uploader :attachment, preview: true, remove: false %>
<% end %>
```

The `preview` option should only be used for image attachments.

By setting `remove: false` the uploader's remove image action is hidden.

## Contributors

https://github.com/varvet/godmin-uploads/graphs/contributors
Expand Down

0 comments on commit 5a5b6c9

Please sign in to comment.