Created
September 7, 2012 03:03
-
-
Save maylogger/3662727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ViewHelpers | |
| def placekitten(size, options={}) | |
| domain = options[:domain] || "http://placekitten.com" | |
| src = "#{domain}/#{size}" | |
| g = options[:g] | |
| if options[:g] | |
| src = "#{domain}/g/#{size}" | |
| end | |
| src | |
| end | |
| end | |
| include ViewHelpers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment