Commit ae8adeac9d85ba5501dcbf3d53e5c9ca8cf134e0

Authored by Antonio Terceiro
1 parent 4f3ffcd8

ActionItem1210: only use environment if there is on already

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/profile.rb
@@ -569,7 +569,7 @@ private :generate_url, :url_options @@ -569,7 +569,7 @@ private :generate_url, :url_options
569 end 569 end
570 570
571 def theme 571 def theme
572 - self[:theme] || environment.theme 572 + self[:theme] || environment && environment.theme || 'default'
573 end 573 end
574 574
575 def public? 575 def public?