1. 30 9月, 2010 1 次提交
    • P
      Added config.app_generators to allow configuring application's generators from railties. · f8513523
      Piotr Sarnacki 提交于
      With config.generators becomes a way to configure generators
      for current instance only. For example:
      
      module Blog
        class Engine < Rails::Engine
          config.generators do |g|
            g.orm :active_record
          end
      
          config.app_generators do |g|
            g.test_framework :rspec
          end
        end
      end
      
      such definition sets :active_record as orm for engine and :rspec
      as test_framework for application. The values set with app_generators
      can be overwritten in application using config.generators as you would
      normally do:
      
      module MyApp
        class Application < Rails::Application
          config.generators do |g|
            g.test_framework :test_unit
          end
        end
      end
      f8513523
  2. 21 8月, 2010 1 次提交
  3. 18 7月, 2010 1 次提交
  4. 13 7月, 2010 1 次提交
  5. 24 6月, 2010 1 次提交
  6. 19 6月, 2010 1 次提交
  7. 17 6月, 2010 1 次提交
  8. 15 5月, 2010 1 次提交
    • W
      Reorganized initializers a bit to enable better hooks for common cases without... · 9cfeefb6
      wycats 提交于
      Reorganized initializers a bit to enable better hooks for common cases 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
        config/environments/{development,production,test}.rb)
      * 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.
      9cfeefb6
  9. 29 4月, 2010 1 次提交
  10. 21 4月, 2010 1 次提交
  11. 16 4月, 2010 1 次提交
  12. 30 3月, 2010 1 次提交
  13. 27 3月, 2010 1 次提交
  14. 07 3月, 2010 1 次提交
    • W
      Make many parts of Rails lazy. In order to facilitate this, · 39d6f9e1
      wycats 提交于
      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
      39d6f9e1
  15. 17 2月, 2010 1 次提交
  16. 05 2月, 2010 1 次提交
  17. 30 1月, 2010 2 次提交
  18. 29 1月, 2010 1 次提交
  19. 26 1月, 2010 1 次提交
  20. 25 1月, 2010 1 次提交
  21. 24 1月, 2010 1 次提交
  22. 23 1月, 2010 1 次提交
  23. 15 1月, 2010 1 次提交
  24. 13 1月, 2010 1 次提交
  25. 11 1月, 2010 1 次提交
  26. 07 1月, 2010 1 次提交
  27. 04 1月, 2010 2 次提交
  28. 01 1月, 2010 3 次提交
  29. 31 12月, 2009 2 次提交
  30. 30 12月, 2009 1 次提交
  31. 29 12月, 2009 1 次提交
  32. 27 12月, 2009 2 次提交
    • J
      Remove ActiveRecord runtime logging from ActionPack and place in ActiveRecord,... · 97db79ab
      José Valim 提交于
      Remove ActiveRecord runtime logging from ActionPack and place in ActiveRecord, adding it through config.action_controller.include hook.
      97db79ab
    • J
      Remove ActionView inline logging to ActiveSupport::Notifications and create... · 75ba102a
      José Valim 提交于
      Remove ActionView inline logging to ActiveSupport::Notifications and create ActionController::Base#log_event, so everything can be logged within one listener. Also expose log_process_action as a hook for different modules to include their own information during the action processing. This allow ActiveRecord to hook and any other ORM. Finally, this commit changes 'Processing' and 'Rendering' in logs to 'Processed' and 'Rendered' because at the point it's logged, everying already happened.
      75ba102a
  33. 24 12月, 2009 2 次提交