Created
July 3, 2009 21:21
-
-
Save jzellman/140308 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
def current_brand | |
@_cached_brand ||= current_user.nil? ? look_up_from_reseller : | |
current_user.company.reseller.brand | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment