Sha256: 481da19e1fefa6ba81a820e93e71f13c4aa35e1d4c982b8b5c402d8c454428c9

Contents?: true

Size: 284 Bytes

Versions: 26

Compression:

Stored size: 284 Bytes

Contents

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

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
dorsale-3.8.1 lib/dorsale/file_loader.rb
dorsale-3.8.0 lib/dorsale/file_loader.rb
dorsale-3.7.8 lib/dorsale/file_loader.rb
dorsale-3.7.7 lib/dorsale/file_loader.rb
dorsale-3.7.6 lib/dorsale/file_loader.rb
dorsale-3.7.5 lib/dorsale/file_loader.rb
dorsale-3.7.4 lib/dorsale/file_loader.rb
dorsale-3.7.2 lib/dorsale/file_loader.rb
dorsale-3.7.1 lib/dorsale/file_loader.rb
dorsale-3.7.0 lib/dorsale/file_loader.rb
dorsale-3.6.1 lib/dorsale/file_loader.rb
dorsale-3.6.0 lib/dorsale/file_loader.rb
dorsale-3.5.2 lib/dorsale/file_loader.rb
dorsale-3.5.1 lib/dorsale/file_loader.rb
dorsale-3.5.0 lib/dorsale/file_loader.rb
dorsale-3.4.0 lib/dorsale/file_loader.rb
dorsale-3.3.0 lib/dorsale/file_loader.rb
dorsale-3.2.0 lib/dorsale/file_loader.rb
dorsale-3.1.7 lib/dorsale/file_loader.rb
dorsale-3.1.6 lib/dorsale/file_loader.rb