Permalink
Browse files

No need to use a begin block there

  • Loading branch information...
1 parent abb0905 commit a76fbee9c9cd2dcd392a570e65ad1f4868763aa0 @dasch dasch committed Sep 4, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 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 a76fbee

Please sign in to comment.