module Railspacker::Helper
Public Instance Methods
pack_path(name)
click to toggle source
# File lib/railspacker/helper.rb, line 3 def pack_path(name) manifest = Railspacker.manifest.load if manifest.nil? raise "manifest.json not found." end if !manifest.key?(name) raise "Pack not found in manifest.json: #{name}" end Railspacker.source.call(manifest[name]) end