Sha256: 62e9b7c335397df500d66702a06593dfc05b2e41f32d516d657b09cdc85ff93c
Contents?: true
Size: 351 Bytes
Versions: 1
Compression:
Stored size: 351 Bytes
Contents
module Rda module Rails def self.app_name @app_name ||= IO.foreach(File.join(Dir.pwd, 'config.ru')) do |l| if l =~ /run\s+(.*)::Application/ return $1.underscore.dasherize end end end def self.root Dir.pwd if app_name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rda-0.3.1 | lib/rda/rails.rb |