Files
docs/node_modules/speakingurl/lib/speakingurl-rails.rb
yinxue 9e1b8bdc9d
Some checks failed
CI Pipeline / build (push) Failing after 3m23s
first-commit
2025-08-27 14:05:33 +08:00

15 lines
387 B
Ruby

require 'rails'
require 'sprockets/railtie'
module Speakingurl
module Rails
class Railtie < ::Rails::Railtie
initializer "speakingurl_rails.append_path", :group => :all do |app|
speakingurl_path = File.expand_path('../', __FILE__)
sprockets_env = app.assets || Sprockets
sprockets_env.prepend_path(speakingurl_path.to_s)
end
end
end
end