Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

No need to use a begin block there

  • Loading branch information...
commit a76fbee9c9cd2dcd392a570e65ad1f4868763aa0 1 parent abb0905
@dasch dasch authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.