Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9180

Show
Ignore:
Timestamp:
04/01/08 02:09:52 (2 years ago)
Author:
pratik
Message:

Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r9167 r9180  
    11*SVN* 
     2 
     3* Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants [pratik] 
    24 
    35* Allow files in plugins to be reloaded like the rest of the application.  [rick] 
  • trunk/railties/lib/initializer.rb

    r9167 r9180  
    2121  def self.configuration=(configuration) 
    2222    @@configuration = configuration 
     23  end 
     24   
     25  def self.logger 
     26    RAILS_DEFAULT_LOGGER 
     27  end 
     28   
     29  def self.root 
     30    RAILS_ROOT 
     31  end 
     32   
     33  def self.env 
     34    RAILS_ENV 
     35  end 
     36   
     37  def self.cache 
     38    RAILS_CACHE 
    2339  end 
    2440