Commit 4f24ed2c by Jon Yurek

Merge pull request #1578 from dilipror/master

Made indentation properly
parents 955db222 ec79bddd
...@@ -324,11 +324,11 @@ do this. ...@@ -324,11 +324,11 @@ do this.
```ruby ```ruby
class ActiveRecord::Base class ActiveRecord::Base
has_attached_file :avatar has_attached_file :avatar
# Validate content type # Validate content type
validates_attachment_content_type :avatar, :content_type => /\Aimage/ validates_attachment_content_type :avatar, :content_type => /\Aimage/
# Validate filename # Validate filename
validates_attachment_file_name :avatar, :matches => [/png\Z/, /jpe?g\Z/] validates_attachment_file_name :avatar, :matches => [/png\Z/, /jpe?g\Z/]
# Explicitly do not validate # Explicitly do not validate
do_not_validate_attachment_file_type :avatar do_not_validate_attachment_file_type :avatar
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