Sha256: d64b35c0a62bf18b11003f6aee5c72a2ae591187f362cb38e788d342ad852136
Contents?: true
Size: 720 Bytes
Versions: 9
Compression:
Stored size: 720 Bytes
Contents
module Wagn WAGN_GEM_ROOT = File.expand_path("../..", __FILE__) class << self def root Rails.root end def application Rails.application end def config application.config end def paths application.paths end def gem_root WAGN_GEM_ROOT end def card_gem_root @card_gem_root ||= locate_gem "card" end private def locate_gem name spec = Bundler.load.specs.find { |s| s.name == name } unless spec raise GemNotFound, "Could not find gem '#{name}' in the current bundle." end return File.expand_path("../../../", __FILE__) if spec.name == "bundler" spec.full_gem_path end end end
Version data entries
9 entries across 9 versions & 1 rubygems