Browse files

Clean up debugging code

  • Loading branch information...
1 parent df9ba01 commit 2bd736512f61e655c34f2ec54498657d757ca9b1 @peakpg peakpg committed Feb 9, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/bcms_mobile/engine.rb
View
8 lib/bcms_mobile/engine.rb
@@ -14,7 +14,7 @@ class Engine < Rails::Engine
Cms::ContentController.class_eval do
include BcmsMobile::MobileAware
- before_filter :print_request_info
+ #before_filter :print_request_info
before_filter :configure_cache_directory
def print_request_info
@@ -27,9 +27,6 @@ def print_request_info
m += "No"
end
w m
-
- mime_type = Mime::Type.lookup_by_extension(request.parameters[:format])
- w "Mime::Type: :#{mime_type.symbol}" if mime_type
end
def configure_cache_directory
@@ -54,11 +51,8 @@ def respond_as_mobile?
end
private
-
-
# Overrides core behavior to swap layouts based on whether this is a mobile request or not.
def render_page
-
@_page_route.execute(self) if @_page_route
prepare_connectables_for_render
template = determine_page_template

0 comments on commit 2bd7365

Please sign in to comment.