aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets/helpers
diff options
context:
space:
mode:
authorDaniel Schierbeck <daniel.schierbeck@gmail.com>2011-09-04 18:48:50 +0300
committerDaniel Schierbeck <daniel.schierbeck@gmail.com>2011-09-04 18:48:50 +0300
commita76fbee9c9cd2dcd392a570e65ad1f4868763aa0 (patch)
tree8dac47532898a071eab1af0961cbdea710d0a2f5 /actionpack/lib/sprockets/helpers
parentabb09054043c556ae38d2c9d1e9037eceb6dc426 (diff)
downloadrails-a76fbee9c9cd2dcd392a570e65ad1f4868763aa0.tar.gz
rails-a76fbee9c9cd2dcd392a570e65ad1f4868763aa0.tar.bz2
rails-a76fbee9c9cd2dcd392a570e65ad1f4868763aa0.zip
No need to use a begin block there
Diffstat (limited to 'actionpack/lib/sprockets/helpers')
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb
index 2dde2e9cc9..e800ab77a4 100644
--- a/actionpack/lib/sprockets/helpers/rails_helper.rb
+++ b/actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -61,11 +61,9 @@ module Sprockets
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.