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
bmc-1.6.1 lib/bmc/engine_file.rb
bmc-1.6.0 lib/bmc/engine_file.rb
bmc-1.5.1 lib/bmc/engine_file.rb
bmc-1.5.0 lib/bmc/engine_file.rb
bmc-1.4.3 lib/bmc/engine_file.rb
bmc-1.4.2 lib/bmc/engine_file.rb
bmc-1.4.1 lib/bmc/engine_file.rb
agilibox-2.0.0 lib/agilibox/engine_file.rb
bmc-1.4.0 lib/bmc/engine_file.rb
bmc-1.3.5 lib/bmc/engine_file.rb
bmc-1.3.4 lib/bmc/engine_file.rb
bmc-1.3.3 lib/bmc/engine_file.rb
bmc-1.3.2 lib/bmc/engine_file.rb
bmc-1.3.1 lib/bmc/engine_file.rb
bmc-1.3.0 lib/bmc/engine_file.rb
bmc-1.2.1 lib/bmc/engine_file.rb
bmc-1.2.0 lib/bmc/engine_file.rb
bmc-1.1.0 lib/bmc/engine_file.rb
bmc-1.0.1 lib/bmc/engine_file.rb
bmc-1.0.0 lib/bmc/engine_file.rb