module Bullet

def app_root

Rails.root might be nil if `railties` is a dependency on a project that does not use Rails
def app_root
  @app_root ||= (defined?(::Rails.root) && !::Rails.root.nil? ? Rails.root.to_s : Dir.pwd).to_s
end