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

Version Path
agilibox-1.2.3 lib/agilibox/engine_file.rb
agilibox-1.2.2 lib/agilibox/engine_file.rb
agilibox-1.2.1 lib/agilibox/engine_file.rb
agilibox-1.2.0 lib/agilibox/engine_file.rb
agilibox-1.1.0 lib/agilibox/engine_file.rb
agilibox-1.0.15 lib/agilibox/engine_file.rb
agilibox-1.0.14 lib/agilibox/engine_file.rb
agilibox-1.0.13 lib/agilibox/engine_file.rb
agilibox-1.0.12 lib/agilibox/engine_file.rb
agilibox-1.0.11 lib/agilibox/engine_file.rb
agilibox-1.0.10 lib/agilibox/engine_file.rb