mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Upgrade to Rails 7
This patch upgrades Rails to version 7.0.2.4.
This commit is contained in:
committed by
Loïc Guitaut
parent
532f9cdb1a
commit
008b700a3f
@@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'stylesheet/importer'
|
||||
require 'stylesheet/functions'
|
||||
|
||||
module Stylesheet
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stylesheet
|
||||
module ScssFunctions
|
||||
def asset_url(path)
|
||||
Discourse.deprecate("The `asset-url` SCSS function is deprecated. Use `absolute-image-url` instead.", drop_from: '2.9.0')
|
||||
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.asset_url(path.value)}')")
|
||||
end
|
||||
def image_url(path)
|
||||
Discourse.deprecate("The `image-url` SCSS function is deprecated. Use `absolute-image-url` instead.", drop_from: '2.9.0')
|
||||
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.image_url(path.value)}')")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
::SassC::Script::Functions.include(Stylesheet::ScssFunctions)
|
||||
@@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_dependency 'global_path'
|
||||
require 'global_path'
|
||||
|
||||
module Stylesheet
|
||||
class Importer
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_dependency 'distributed_cache'
|
||||
require_dependency 'stylesheet/compiler'
|
||||
require 'distributed_cache'
|
||||
require 'stylesheet/compiler'
|
||||
|
||||
module Stylesheet; end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user