Sha256: c526dd49bcbcd155e8acdc38428f83443aad698f7e9eb1c3ffe07ec0bd291819

Contents?: true

Size: 227 Bytes

Versions: 1

Compression:

Stored size: 227 Bytes

Contents

# encoding: UTF-8

# Get rails app root (Rails.root or RAILS_ROOT or Dir.pwd)
class DumpRake
  RailsRoot = case
  when defined?(Rails)
    Rails.root
  when defined?(RAILS_ROOT)
    RAILS_ROOT
  else
    Dir.pwd
  end.to_s
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dump-1.0.5 lib/dump_rake/rails_root.rb