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.9.5 lib/agilibox/engine_file.rb
agilibox-1.9.4 lib/agilibox/engine_file.rb
agilibox-1.9.3 lib/agilibox/engine_file.rb
agilibox-1.9.1 lib/agilibox/engine_file.rb
agilibox-1.9.0 lib/agilibox/engine_file.rb
agilibox-1.8.0 lib/agilibox/engine_file.rb
agilibox-1.7.4 lib/agilibox/engine_file.rb
agilibox-1.7.3 lib/agilibox/engine_file.rb
agilibox-1.7.2 lib/agilibox/engine_file.rb
agilibox-1.7.1 lib/agilibox/engine_file.rb
agilibox-1.7.0 lib/agilibox/engine_file.rb
agilibox-1.6.2 lib/agilibox/engine_file.rb
agilibox-1.6.1 lib/agilibox/engine_file.rb
agilibox-1.6.0 lib/agilibox/engine_file.rb
agilibox-1.5.13 lib/agilibox/engine_file.rb
agilibox-1.5.12 lib/agilibox/engine_file.rb
agilibox-1.5.11 lib/agilibox/engine_file.rb
agilibox-1.5.10 lib/agilibox/engine_file.rb
agilibox-1.5.9 lib/agilibox/engine_file.rb
agilibox-1.5.8 lib/agilibox/engine_file.rb