Permalink
Browse files

Add the minimal amount of documentation for the include_size_attribut…

…es option.
  • Loading branch information...
1 parent c5902cb commit 2ef518a67ef0a1a80b612c9e004cb6140c83d7e5 @mdeering committed Jun 24, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 README.textile
View
@@ -46,11 +46,12 @@ h3. Global configuration points
<pre># config/initializers/gravatar_image_tag.rb
GravatarImageTag.configure do |config|
- config.default_image = nil # Set this to use your own default gravatar image rather then serving up Gravatar's default image [ 'http://example.com/images/default_gravitar.jpg', :identicon, :monsterid, :wavatar, 404 ].
- config.filetype = nil # Set this if you require a specific image file format ['gif', 'jpg' or 'png']. Gravatar's default is png
- config.rating = nil # Set this if you change the rating of the images that will be returned ['G', 'PG', 'R', 'X']. Gravatar's default is G
- config.size = nil # Set this to globally set the size of the gravatar image returned (1..512). Gravatar's default is 80
- config.secure = false # Set this to true if you require secure images on your pages.
+ config.default_image = nil # Set this to use your own default gravatar image rather then serving up Gravatar's default image [ 'http://example.com/images/default_gravitar.jpg', :identicon, :monsterid, :wavatar, 404 ].
+ config.filetype = nil # Set this if you require a specific image file format ['gif', 'jpg' or 'png']. Gravatar's default is png
+ config.include_size_attributes = true # The height and width attributes of the generated img will be set to avoid page jitter as the gravatars load. Set to false to leave these attributes off.
+ config.rating = nil # Set this if you change the rating of the images that will be returned ['G', 'PG', 'R', 'X']. Gravatar's default is G
+ config.size = nil # Set this to globally set the size of the gravatar image returned (1..512). Gravatar's default is 80
+ config.secure = false # Set this to true if you require secure images on your pages.
end
</pre>

0 comments on commit 2ef518a

Please sign in to comment.