Skip to content

Commit

Permalink
Revert "Merge pull request #2647 from dmathieu/no_rescue"
Browse files Browse the repository at this point in the history
This reverts commit 125b1b0.
  • Loading branch information
spastorino committed Aug 30, 2011
1 parent aa94342 commit 69c7213
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 8 additions & 4 deletions actionpack/lib/sprockets/helpers/rails_helper.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,10 +72,14 @@ def asset_path(source, default_ext = nil, body = false, protocol = nil)


private private
def debug_assets? def debug_assets?
Rails.application.config.assets.compile && begin
(Rails.application.config.assets.debug || Rails.application.config.assets.compile &&
params[:debug_assets] == '1' || (Rails.application.config.assets.debug ||
params[:debug_assets] == 'true') params[:debug_assets] == '1' ||
params[:debug_assets] == 'true')
rescue NoMethodError
false
end
end end


# Override to specify an alternative prefix for asset path generation. # Override to specify an alternative prefix for asset path generation.
Expand Down
6 changes: 1 addition & 5 deletions actionpack/test/abstract_unit.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -142,11 +142,7 @@ def call(env)
end end


class BasicController class BasicController
attr_accessor :request, :params attr_accessor :request

def initialize
@params = {}
end


def config def config
@config ||= ActiveSupport::InheritableOptions.new(ActionController::Base.config).tap do |config| @config ||= ActiveSupport::InheritableOptions.new(ActionController::Base.config).tap do |config|
Expand Down

0 comments on commit 69c7213

Please sign in to comment.