Guest User

Untitled

a guest
Feb 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Returns the URL for the named resource
  2. def static_url(resource_name, opts = {})
  3. opts[:language] ||= language
  4. entry = bundle.find_resource_entry(resource_name, opts)
  5. entry.nil? ? '' : entry.cacheable_url
  6. end
Add Comment
Please, Sign In to add comment