Commit 7bf50e12 by Jon Yurek

Merge pull request #1317 from GhostGambler/master

Little bugfix in README.md
parents c594c249 6d59c230
...@@ -233,7 +233,7 @@ afterwards, then assign manually: ...@@ -233,7 +233,7 @@ afterwards, then assign manually:
```ruby ```ruby
class Book < ActiveRecord::Base class Book < ActiveRecord::Base
has_attached_file :document, styles: {thumbnail: "60x60#"} has_attached_file :document, styles: {thumbnail: "60x60#"}
validates_attachment :document, content_type: "application/pdf" validates_attachment :document, content_type: { content_type: "application/pdf" }
validates_something_else # Other validations that conflict with Paperclip's validates_something_else # Other validations that conflict with Paperclip's
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment