module DynamicScaffold module Fontawesome def self.inline_svg(path) Rails.cache.fetch "dynamic_scaffold/fontawesome/icons/#{path}" do full_path = DynamicScaffold::Engine.root.join('app', 'assets', 'images', 'dynamic_scaffold', 'fontawesome', path) file = File.open(full_path) file.read.gsub!('