Skip to content
This repository
Browse code

No need to use a begin block there

  • Loading branch information...
commit a76fbee9c9cd2dcd392a570e65ad1f4868763aa0 1 parent abb0905
Daniel Schierbeck authored September 04, 2011
8  actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -61,11 +61,9 @@ def asset_path(source, default_ext = nil, body = false, protocol = nil)
61 61
 
62 62
     private
63 63
       def debug_assets?
64  
-        begin
65  
-          compile_assets? && (Rails.application.config.assets.debug || params[:debug_assets])
66  
-        rescue NoMethodError
67  
-          false
68  
-        end
  64
+        compile_assets? && (Rails.application.config.assets.debug || params[:debug_assets])
  65
+      rescue NoMethodError
  66
+        false
69 67
       end
70 68
 
71 69
       # Override to specify an alternative prefix for asset path generation.

0 notes on commit a76fbee

Please sign in to comment.
Something went wrong with that request. Please try again.