Skip to content

Commit

Permalink
Merge pull request #1967 from flanger001/patch-1
Browse files Browse the repository at this point in the history
Edit readme: clarify writing conditional methods
  • Loading branch information
mshibuya committed Aug 11, 2016
2 parents d188659 + ca0c849 commit fa5dd61
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 @@ -278,7 +278,9 @@ end
### Conditional versions

Occasionally you want to restrict the creation of versions on certain
properties within the model or based on the picture itself.
properties within the model or based on the picture itself. Create an
instance method that accepts a file object as an argument and returns
a boolean.

```ruby
class MyUploader < CarrierWave::Uploader::Base
Expand Down

0 comments on commit fa5dd61

Please sign in to comment.