Created
September 3, 2008 04:45
-
-
Save erichocean/8541 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
# Returns the URL for the named resource | |
def static_url(resource_name, opts = {}) | |
opts[:language] ||= language | |
entry = bundle.find_resource_entry(resource_name, opts) | |
entry.nil? ? '' : entry.cacheable_url | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment