1. 09 10月, 2010 2 次提交
  2. 08 10月, 2010 1 次提交
  3. 07 10月, 2010 1 次提交
  4. 06 10月, 2010 4 次提交
  5. 05 10月, 2010 1 次提交
  6. 04 10月, 2010 1 次提交
  7. 03 10月, 2010 1 次提交
  8. 02 10月, 2010 2 次提交
  9. 30 9月, 2010 3 次提交
    • 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
    • P
      Properly reload routes defined in class definition · ec5d846a
      Piotr Sarnacki 提交于
      Sometimes it's easier to define routes inside Engine or
      Application class definition (e.g. one file applications). The
      problem with such case is that if there is a plugin that
      has config/routes.rb file, it will trigger routes reload on application.
      Since routes definition for application is not in config/routes.rb
      file routes_reloader will fail to reload application's routes
      properly. With this commit you can pass routes definition as a block
      to routes method, which will allow to properly reload it:
      
      class MyApp::Application < Rails::Application
        routes do
          resources :users
        end
      end
      ec5d846a
    • P
      Do not overwrite _railtie method on namespace while creating isolated engine or application. · 74598fe7
      Piotr Sarnacki 提交于
      In order to run Engine as standalone application, you will need
      Rails::Application instance in the same namespace that engine
      one. It's very important to leave _railtie bound to whatever
      used "namespace" method first.
      74598fe7
  10. 26 9月, 2010 1 次提交
  11. 25 9月, 2010 8 次提交
  12. 24 9月, 2010 2 次提交
  13. 23 9月, 2010 1 次提交
  14. 20 9月, 2010 2 次提交
  15. 19 9月, 2010 5 次提交
  16. 18 9月, 2010 1 次提交
    • C
      Add RouteSet#append · 7418a440
      Carl Lerche 提交于
      	Allows specifying blocks to the routeset that will get 	appended after the RouteSet is drawn.
      7418a440
  17. 16 9月, 2010 1 次提交
  18. 14 9月, 2010 2 次提交
  19. 11 9月, 2010 1 次提交