Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 23, 2012
  1. @josevalim

    Fix failure on middleware/exceptions_test

    josevalim authored
    The reason the test was failing was because when the test
    invokes `app.config`, the app is loaded and, as `eager_load`
    is set to true, it disables the dependency loading mechanism,
    so controllers that are later defined are not loaded.
Commits on Aug 21, 2012
  1. @josevalim

    Get rid of config.preload_frameworks in favor of config.eager_load_na…

    josevalim authored
    …mespaces
    
    The new option allows any Ruby namespace to be registered and set
    up for eager load. We are effectively exposing the structure existing
    in Rails since v3.0 for all developers in order to make their applications
    thread-safe and CoW friendly.
  2. @josevalim

    Allow users to choose when to eager_load the application or not.

    josevalim authored
    Previously, the eager load behavior was mostly coupled to
    config.cache_classes, however this was suboptimal since in
    some environments a developer may want to cache classes but
    not necessarily load them all on boot (for example, test env).
    
    This pull request also promotes the use of config.eager_load
    set to true by default in production. In the majority of the
    cases, this is the behavior you want since it will copy most
    of your app into memory on boot (which was also the previous
    behavior).
    
    Finally, this fix a long standing Rails bug where it was
    impossible to access a model in a rake task when Rails was
    set as thread safe.
Commits on Apr 28, 2012
  1. @josevalim

    Use Rails::Queueing::Queue instead of Queue so people can build their…

    josevalim authored
    … own consumers around stdlib's Queue
Commits on Dec 15, 2011
  1. @josevalim

    Clean up the cache before the request in case we are running in the r…

    josevalim authored
    …eload_classes_only_on_change schema.
Commits on Dec 13, 2011
  1. @josevalim
  2. @josevalim
  3. @josevalim
  4. @josevalim

    Revert "Provide a unique point for running initializers."

    josevalim authored
    This reverts commit c2e3ce8.
    
    Conflicts:
    
    	railties/lib/rails/application/configuration.rb
    	railties/lib/rails/application/finisher.rb
    	railties/lib/rails/engine.rb
Commits on Dec 12, 2011
  1. @josevalim

    Speed up development by only reloading classes if dependencies files …

    josevalim authored
    …changed.
    
    This can be turned off by setting `config.reload_classes_only_on_change` to false.
    
    Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading.
    
    Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
  2. @josevalim
  3. @josevalim
  4. @josevalim
Commits on Apr 17, 2011
  1. @josevalim
Commits on Apr 15, 2011
  1. @josevalim
Commits on Oct 6, 2010
  1. @josevalim
Commits on Sep 2, 2010
  1. @josevalim

    Ensure routes are loaded only after the initialization process finish…

    josevalim authored
    …es, ensuring all configuration options were applied.
Commits on Jun 20, 2010
  1. @josevalim
Commits on Jun 1, 2010
  1. @josevalim

    Add lib to load paths when application is inherited to be able to loa…

    josevalim authored
    …d lib code during configuration.
Commits on May 15, 2010
  1. @josevalim

    Expose remaining hooks to minimize the need for a Railtie based on fe…

    josevalim authored
    …edback from plugin developers.
  2. @josevalim

    Ensure that eager_load actually takes place just after the middleware…

    josevalim authored
    … stack is built by using another pattern.
    
    Also create a engine_blank_point initializer to ensure any :before or :after hooks defined inside engines won't move the configuration initializers to other places.
Commits on Apr 5, 2010
  1. @josevalim

    Rename config.cookie_secret to config.secret_token and pass it as con…

    josevalim authored
    …figuration in request.env. This is another step forward removing global configuration.
Commits on Feb 19, 2010
  1. @josevalim

    Revert behavior from a5684df and ensure after_initializer is executed…

    josevalim authored
    … after to_prepare callbacks.
Commits on Feb 18, 2010
  1. @josevalim
Commits on Jan 28, 2010
  1. @josevalim

    Add config.to_prepare back and add tests for it.

    josevalim authored Carl Lerche committed
    Signed-off-by: Carl Lerche <carllerche@mac.com>
  2. @josevalim

    Refactor MetalLoader and RoutesReloader to rely less on class configu…

    josevalim authored Carl Lerche committed
    …ration.
    
    Signed-off-by: Carl Lerche <carllerche@mac.com>
Commits on Jan 25, 2010
  1. @josevalim
Commits on Jan 24, 2010
  1. @josevalim
  2. @josevalim
  3. @josevalim

    Solve some pendencies.

    josevalim authored
Commits on Jan 23, 2010
  1. @josevalim
  2. @josevalim
Something went wrong with that request. Please try again.