Permalink
Browse files

Fixed default brand

  • Loading branch information...
1 parent 7896677 commit 3f081620a59133d877b68af06956a4a6a24d7dc8 Khalid Shaikh committed Jan 13, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/brandy.rb
View
@@ -10,11 +10,7 @@ def load_file
end
def prefix request
- if request.domain.split('.').last.nil? || request.domain.nil?
- @brands.first
- else
- @brands[request.domain.split('.').last] ||= @brands.first
- end
+ @brands[request.domain.split('.').last] ||= @brands.values.first
end
end

0 comments on commit 3f08162

Please sign in to comment.