Sha256: ff9b9e7969a7f04e9200d596fd9bf5e09c26282bda9e7f82077393b31a0f4be6

Contents?: true

Size: 285 Bytes

Versions: 61

Compression:

Stored size: 285 Bytes

Contents

module Kernel
  def dorsale_file
    app_file      = caller.first.split(":").first
    app_root      = ::Rails.application.root.to_s
    relative_file = app_file.gsub(app_root, "")
    dorsale_root  = ::Dorsale::Engine.root.to_s

    ::File.join(dorsale_root, relative_file)
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
dorsale-2.2.3 lib/dorsale/file_loader.rb
dorsale-2.2.2 lib/dorsale/file_loader.rb
dorsale-2.2.1 lib/dorsale/file_loader.rb
dorsale-2.2.0 lib/dorsale/file_loader.rb
dorsale-2.1.15 lib/dorsale/file_loader.rb
dorsale-2.1.14 lib/dorsale/file_loader.rb
dorsale-2.1.13 lib/dorsale/file_loader.rb
dorsale-2.1.12 lib/dorsale/file_loader.rb
dorsale-2.1.11 lib/dorsale/file_loader.rb
dorsale-2.1.10 lib/dorsale/file_loader.rb
dorsale-2.1.9 lib/dorsale/file_loader.rb
dorsale-2.1.8 lib/dorsale/file_loader.rb
dorsale-2.1.7 lib/dorsale/file_loader.rb
dorsale-2.1.6 lib/dorsale/file_loader.rb
dorsale-2.1.5 lib/dorsale/file_loader.rb
dorsale-2.1.4 lib/dorsale/file_loader.rb
dorsale-2.1.3 lib/dorsale/file_loader.rb
dorsale-2.1.2 lib/dorsale/file_loader.rb
dorsale-2.1.1 lib/dorsale/file_loader.rb
dorsale-2.1.0 lib/dorsale/file_loader.rb