mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 14:15:11 +08:00
FEATURE: upgrade sprockets to latest stable
This unlocks Rails upgrades, so we can now upgrade to latest Rails
This commit is contained in:
@ -1,6 +1,15 @@
|
||||
class SourceURL < Tilt::Template
|
||||
self.default_mime_type = 'application/javascript'
|
||||
|
||||
def self.call(input)
|
||||
filename = input[:filename]
|
||||
source = input[:data]
|
||||
context = input[:environment].context_class.new(input)
|
||||
|
||||
result = new(filename){source}.render(context)
|
||||
context.metadata.merge(data: result)
|
||||
end
|
||||
|
||||
def prepare
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user