Browse files

Merge pull request #2851 from dasch/patch-6

No need to use a begin block there
  • Loading branch information...
2 parents bd17c76 + a76fbee commit 1fdd95d0840c4a9e64eae67e96e85f3ae7ee8b82 @jonleighton jonleighton committed Sep 6, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 actionpack/lib/sprockets/helpers/rails_helper.rb
View
8 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -61,11 +61,9 @@ def asset_path(source, default_ext = nil, body = false, protocol = nil)
private
def debug_assets?
- begin
- compile_assets? && (Rails.application.config.assets.debug || params[:debug_assets])
- rescue NoMethodError
- false
- end
+ compile_assets? && (Rails.application.config.assets.debug || params[:debug_assets])
+ rescue NoMethodError
+ false
end
# Override to specify an alternative prefix for asset path generation.

0 comments on commit 1fdd95d

Please sign in to comment.