Sha256: 0945065f686b56cd87cb31adbe6917f09394d8f69f3eed65140bae28427015ac
Contents?: true
Size: 293 Bytes
Versions: 91
Compression:
Stored size: 293 Bytes
Contents
module Kernel def engine_file(engine) app_file = caller(1..1).first.split(":").first app_root = ::Rails.application.root.to_s relative_file = app_file.sub(app_root, "") engine_root = engine::Engine.root.to_s ::File.join(engine_root, relative_file) end end
Version data entries
91 entries across 91 versions & 2 rubygems