Sha256: 29ca2f3fb7fa66ae9b38a80c4b1f9ad2b5eddad953b8b5f26d0c209de11c146c

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 Bytes

Contents

RADIANT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unless defined? RADIANT_ROOT

require 'local_time'

require 'radiant/engine'

require 'radiant/initializer'
require 'radiant/extension_loader'
Radiant::ExtensionLoader.load_extensions

unless defined? Radiant::Version
  module Radiant
    module Version
      version = YAML::load_file(File.join(File.dirname(__FILE__), '..', 'VERSION')).split('.')
      
      Major = version[0]
      Minor = version[1]
      Tiny  = version[2]
      Patch = version[3]

      class << self
        def to_s
          [Major, Minor, Tiny, Patch].delete_if{|v| v.nil? }.join('.')
        end
        alias :to_str :to_s
      end
    end
    
    # TODO Engines should have a similar feature
    def self.loaded_via_gem?
      false
    end

    def self.app?
      true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-rails3-0.1 lib/radiant.rb