Skip to content
Commits on Jun 27, 2010
  1. @josevalim

    A few changes were done in this commit:

    josevalim committed Jun 28, 2010
    * Added :autoload to engines path API and redefine usage to be in sync with 6f83a50;
    * Do not autoload code in *lib* for applications (now you need to explicitly require them). This makes an application behave closer to an engine (code in lib is still autoloaded for plugins);
    * Always autoload code in app/ for engines and plugins. This makes engines behave closer to an application and should allow us to get rid of the unloadable hack required when controllers inside engines inherit from ApplicationController;
Commits on Jun 23, 2010
  1. @fxn
Commits on May 29, 2010
  1. @wycats

    Removing Metal from Rails 3.

    wycats committed May 29, 2010
    If you have existing Metals, you have a few options:
    * if your metal behaves like a middleware, add it to the
      middleware stack via config.middleware.use. You can use
      methods on the middleware stack to control exactly where
      it should go
    * if it behaves like a Rack endpoint, you can link to it
      in the router. This will result in more optimal routing
      time, and allows you to remove code in your endpoint
      that matches specific URLs in favor of the more powerful
      handling in the router itself.
    For the future, you can use ActionController::Metal to get
    a very fast controller with the ability to opt-in to specific
    controller features without paying the penalty of the full
    controller stack.
    Since Rails 3 is closer to Rack, the Metal abstraction is
    no longer needed.
Commits on May 15, 2010
  1. @josevalim

    Ensure that eager_load actually takes place just after the middleware…

    josevalim committed May 15, 2010
    … 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.
  2. @wycats

    Reorganized initializers a bit to enable better hooks for common case…

    wycats committed May 15, 2010
    …s without the need for Railtie. Specifically, the following hooks were added:
    * before_configuration: this hook is run immediately after the Application class 
      comes into existence, but before the user has added any configuration. This is
      the appropriate place to set configuration for your plugin
    * before_initialize: This is run after all of the user's configuration has completed,
      but before any initializers have begun (in other words, it runs right after
    * after_initialize: This is run after all of the initializers have run. It is an
      appropriate place for forking in a preforking setup
    Each of these hooks may be used via ActiveSupport.on_load(name) { }. In all these cases, the context inside the block will be the Application object. This means that for simple cases, you can use these hooks without needing to create a Railtie.
Commits on Apr 29, 2010
  1. @jeremy
Commits on Apr 26, 2010
  1. @anildigital @jeremy

    Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:r…

    anildigital committed with jeremy Apr 26, 2010
    Signed-off-by: Jeremy Kemper <>
Commits on Apr 19, 2010
  1. @phs @NZKoz

    Regexp.escape(load_path) in add_routing_namespaces initializer [#4442

    phs committed with NZKoz Apr 19, 2010
    Signed-off-by: Michael Koziarski <>
Commits on Apr 13, 2010
  1. @anildigital @jeremy

    Use correct RUBY_PLATFORM regex for Windows env [#4385 state:resolved]

    anildigital committed with jeremy Apr 14, 2010
    Signed-off-by: Jeremy Kemper <>
Commits on Apr 5, 2010
  1. @josevalim @dhh
  2. @josevalim

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

    josevalim committed Apr 5, 2010
    …figuration in request.env. This is another step forward removing global configuration.
Commits on Mar 30, 2010
  1. @wycats

    Replace the placeholder base_hook API with on_load. To specify some c…

    wycats committed Mar 29, 2010
    …ode that
    should run during framework load do:
    ActiveSupport.on_load(:action_controller) do
      # Code run in the context of AC::Base
Commits on Mar 26, 2010
  1. @wycats
  2. @josevalim

    Move application configuration to the application configuration objec…

    josevalim committed Mar 26, 2010
    …t, remove railtie_name and engine_name and allow to set the configuration object.
  3. @josevalim

    Improve heuristic for railties default name, otherwise railties may b…

    josevalim committed Mar 26, 2010
    …e named :railtie, :engine and so on.
Commits on Mar 23, 2010
  1. @wycats
  2. @josevalim
Commits on Mar 12, 2010
  1. @lifo

    Merge remote branch 'mainstream/master'

    lifo committed Mar 12, 2010
Commits on Mar 7, 2010
  1. @wycats

    Make many parts of Rails lazy. In order to facilitate this,

    wycats committed Mar 7, 2010
    add lazy_load_hooks.rb, which allows us to declare code that
    should be run at some later time. For instance, this allows
    us to defer requiring ActiveRecord::Base at boot time purely
    to apply configuration. Instead, we register a hook that should
    apply configuration once ActiveRecord::Base is loaded.
    With these changes, brings down total boot time of a
    new app to 300ms in production and 400ms in dev.
    TODO: rename base_hook
Commits on Mar 6, 2010
  1. @josevalim

    Add mailers to paths in case someone wants to access it directly and …

    josevalim committed Mar 6, 2010
    …ensures deep nesting works in controllers.
Commits on Mar 3, 2010
Commits on Mar 2, 2010
  1. Get the railties tests to pass again.

    Carlhuda committed Mar 2, 2010
  2. @jeremy

    Fix unstated usage of Pathname

    jeremy committed Mar 1, 2010
Commits on Feb 28, 2010
  1. @josh
  2. @jeremy

    Revert "Revert "Application detection should also allow dots in the p…

    jeremy committed Feb 27, 2010
    Works after all. Culprit was 226dfc2.
    This reverts commit 6189480.
  3. @jeremy

    Revert "Application detection should also allow dots in the path."

    jeremy committed Feb 27, 2010
    Ruby 1.9 regression.
    This reverts commit 76237f1.
Commits on Feb 27, 2010
  1. @jeremy
Commits on Feb 26, 2010
  1. @josevalim
Commits on Feb 20, 2010
  1. @josevalim
Commits on Feb 18, 2010
  1. @josevalim
  2. @aaronchi @josevalim

    Fix called_from under Windows so engines works properly

    aaronchi committed with josevalim Feb 18, 2010
    Signed-off-by: José Valim <>
Commits on Feb 14, 2010
  1. @lifo

    Merge remote branch 'mainstream/master'

    lifo committed Feb 14, 2010
Commits on Feb 8, 2010
  1. @josevalim

    Take into account gem versions (so script/rails server can work outsi…

    josevalim committed Feb 8, 2010
    …de the application) and use Rails::Application.root instead of ROOT_PATH.
  2. @mikel
Commits on Feb 6, 2010
  1. @josevalim
Something went wrong with that request. Please try again.