Skip to content

Commit

Permalink
Merge pull request rails#2695 from dasch/more-debug-assets
Browse files Browse the repository at this point in the history
Don't require a specific value for the ?debug flag
  • Loading branch information
tenderlove committed Aug 25, 2011
2 parents a840172 + 8724f00 commit 25ee309
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions actionpack/lib/sprockets/helpers/rails_helper.rb
Expand Up @@ -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.
Expand Down

0 comments on commit 25ee309

Please sign in to comment.