Skip to content

Commit

Permalink
add some debug to aplication
Browse files Browse the repository at this point in the history
  • Loading branch information
David Madrigal committed Dec 14, 2012
1 parent 6c1a6a5 commit aa04bd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -11,7 +11,9 @@ def current_site
helper_method :current_site

def scope_current_site
Site.current_id = current_site.try(:id) || nil
Site.current_id = current_site.try(:id)
puts Site.current_id
puts current_site.try(:custom_layout?)
self.class.layout 'custom' if current_site.try(:custom_layout?)
end

Expand Down

0 comments on commit aa04bd5

Please sign in to comment.