app/controllers/citygate/admin/application_controller.rb in citygate-0.0.6 vs app/controllers/citygate/admin/application_controller.rb in citygate-0.0.7
- old
+ new
@@ -2,14 +2,12 @@
protect_from_forgery
layout :set_layout
private
def set_layout
- if request.headers['X-PJAX-layout']
- "admin/application"
- elsif request.headers['X-PJAX']
+ if request.headers['X-NO-LAYOUT']
false
else
- "admin/application"
+ "admin"
end
end
end