Permalink
Browse files

Don't require a specific value for the ?debug flag

Previously, only "1" and "true" were accepted. This change makes
any value, or no value at all, have the same effect.
  • Loading branch information...
1 parent a840172 commit 8724f00cbd3ed7d244d5f2f498b4d5e08d963a29 @dasch dasch committed Aug 25, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -59,9 +59,7 @@ def asset_path(source, default_ext = nil, body = false, protocol = nil)
private
def debug_assets?
config = Rails.application.config.assets
- param = params[:debug_assets]
-
- config.allow_debugging && (config.debug || param == '1' || param == 'true')
+ config.allow_debugging && (config.debug || params[:debug_assets])
end
# Override to specify an alternative prefix for asset path generation.

0 comments on commit 8724f00

Please sign in to comment.