Skip to content

Commit

Permalink
Cache host in Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tricknotes committed Dec 29, 2012
1 parent aeee1ca commit 88bd051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Settings < Settingslogic
namespace Rails.env

def host
if uri.default_port == uri.port
@host ||= if uri.default_port == uri.port
uri.host
else
'%s:%d' % [uri.host, uri.port]
Expand Down

0 comments on commit 88bd051

Please sign in to comment.