Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def cache_with_currency(name = {}, options = nil, &block)
- key = {base: name}
- if session[:display_currency]
- key[:display_currency] = session[:display_currency]
- end
- cache_without_currency(key, options, &block)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement