Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def cache_with_currency(name = {}, options = nil, &block)
  2. key = {base: name}
  3. if session[:display_currency]
  4. key[:display_currency] = session[:display_currency]
  5. end
  6. cache_without_currency(key, options, &block)
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement