mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
f162f84aa5
2 changed files with 8 additions and 7 deletions
|
@ -70,12 +70,9 @@ module Sprockets
|
||||||
|
|
||||||
private
|
private
|
||||||
def debug_assets?
|
def debug_assets?
|
||||||
begin
|
params[:debug_assets] == '1' ||
|
||||||
params[:debug_assets] == '1' ||
|
params[:debug_assets] == 'true' ||
|
||||||
params[:debug_assets] == 'true'
|
Rails.application.config.assets.debug
|
||||||
rescue NoMethodError
|
|
||||||
false
|
|
||||||
end || Rails.application.config.assets.debug
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Override to specify an alternative prefix for asset path generation.
|
# Override to specify an alternative prefix for asset path generation.
|
||||||
|
|
|
@ -142,7 +142,11 @@ class RoutedRackApp
|
||||||
end
|
end
|
||||||
|
|
||||||
class BasicController
|
class BasicController
|
||||||
attr_accessor :request
|
attr_accessor :request, :params
|
||||||
|
|
||||||
|
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|
|
||||||
|
|
Loading…
Reference in a new issue