KeasInc/badgeville — pull request #3 by rmehner (2011-11-18 14:18:11+00:00)
Title: image_url is now a method that allows to request different formats

Badgeville supports different formats for the image urls, currently it's 'large', 'medium', 'grayscale' and 'grayscale_small' in addition to the normal 'original'.

The new image_url method supports these. It does not include a strict check for available formats, because Badgeville might add new formats without our knowledge and this way we can support that without changing any code.

Also this commit deprecates the grayscale_url method. It's only an alias to image_url('grayscale') now.

Greetings,
- Robin