Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Link to rack from github for this while. | José Valim | 2010-10-04 | 1 | -0/+3 |
| | |||||
* | Add documentation on app_generators | Piotr Sarnacki | 2010-10-03 | 1 | -0/+20 |
| | |||||
* | Move ETag and ConditionalGet logic from AD::Response to the middleware stack. | José Valim | 2010-10-03 | 1 | -1/+3 |
| | |||||
* | Be more explicit about what is deprecated. | José Valim | 2010-10-02 | 1 | -1/+1 |
| | |||||
* | Deprecate generators in Railties. You should use app_generators instead. | José Valim | 2010-10-02 | 3 | -30/+32 |
| | |||||
* | reload_routes! is part of the public API and should not be removed. | José Valim | 2010-10-02 | 2 | -2/+8 |
| | |||||
* | brings csrf_meta_tags back to the generated layout | Xavier Noria | 2010-10-02 | 1 | -1/+1 |
| | | | | | | | | | | After more discussion, it has be agreed that this kind of changes within reasonable margins are OK for 3.1. That is, it is fine to change a little bit the generators even if that means examples in existing books won't be exact. (Note that the singular csrf_meta_tag exists as an alias and thus those outdated examples will run, same for existing applications.) | ||||
* | no need to check for nil | Neeraj Singh | 2010-09-30 | 1 | -1/+1 |
| | |||||
* | Add more information to comments. | José Valim | 2010-09-30 | 1 | -3/+5 |
| | |||||
* | Try to guess application's directory while trying to run the server, but ↵ | Piotr Sarnacki | 2010-09-30 | 1 | -0/+5 |
| | | | | only if config.ru is not present in current dir | ||||
* | Moved Rails::RoutesReloader to Rails::Application::RoutesReloader | Piotr Sarnacki | 2010-09-30 | 3 | -56/+57 |
| | |||||
* | Allow running generators for Engine with usage of other application. | Piotr Sarnacki | 2010-09-30 | 1 | -1/+11 |
| | | | | | | | | After that commit, developers can set ENGINE_PATH in ENGINE/scripts/rails file and load application's ./script/rails (most of the time it will be dummy application used for testing). When running ./script/rails g it will use application to boot up, but then it will use Engine's root and configuration for generators. | ||||
* | Added config.app_generators to allow configuring application's generators ↵ | Piotr Sarnacki | 2010-09-30 | 3 | -4/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from railties. 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 | ||||
* | Move routes_reloader to a class: RoutesReloader | Piotr Sarnacki | 2010-09-30 | 3 | -23/+57 |
| | |||||
* | Properly reload routes defined in class definition | Piotr Sarnacki | 2010-09-30 | 2 | -6/+22 |
| | | | | | | | | | | | | | | | | | 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 | ||||
* | Do not overwrite _railtie method on namespace while creating isolated engine ↵ | Piotr Sarnacki | 2010-09-30 | 1 | -12/+13 |
| | | | | | | | | | or application. 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. | ||||
* | Add gem 'arel' from git commented out as an example of how to Bundle egde ↵ | Santiago Pastorino | 2010-09-29 | 1 | -0/+1 |
| | | | | | | Rails with Arel edge [#5723 state:committed] | ||||
* | Remove deprecated stuff in ActionController | Carlos Antonio da Silva | 2010-09-26 | 1 | -1/+1 |
| | | | | | | This removes all deprecated classes in ActionController related to Routing, Abstract Request/Response and Integration/IntegrationTest. All tests and docs were changed to ActionDispatch instead of ActionController. | ||||
* | Refactor a few methods connected with namespacing in ↵ | Piotr Sarnacki | 2010-09-25 | 1 | -8/+9 |
| | | | | | | Rails::Generators::NamedBase Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add namespacing to mailer generator | Piotr Sarnacki | 2010-09-25 | 1 | -0/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add namespacing for observer generator | Piotr Sarnacki | 2010-09-25 | 1 | -0/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add namespace for test_unit generators | Piotr Sarnacki | 2010-09-25 | 3 | -0/+6 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Update abort message (ht: tilsammans). | José Valim | 2010-09-25 | 1 | -1/+1 |
| | |||||
* | Rails.application is set anyway, we don't need to set it manually, this was ↵ | Piotr Sarnacki | 2010-09-25 | 1 | -1/+1 |
| | | | | | | purpose of different behavior in tests and in application Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Generators fix: properly check if module should be created when creating a ↵ | Piotr Sarnacki | 2010-09-25 | 1 | -1/+5 |
| | | | | | | namespaced model Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Refactor namespaced generators to use module_namespacing block helper | Piotr Sarnacki | 2010-09-24 | 5 | -15/+16 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Generators are not aware of namespace of isolated engines and applications | Piotr Sarnacki | 2010-09-24 | 3 | -4/+60 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix typo and add sanity test for code statistics rake task. | Emilio Tagua | 2010-09-24 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Ensures the app generator generates the correct @app_name. [#5434 ↵ | Fred Wu | 2010-09-24 | 1 | -4/+7 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | only abort in test_help in production env | David Chelimsky | 2010-09-24 | 1 | -3/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Perf: speed up 2 methods in railties. | Emilio Tagua | 2010-09-22 | 2 | -5/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | List all of isolated engine changes | Piotr Sarnacki | 2010-09-20 | 1 | -3/+21 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Strengthen documantation on engine's migrations and seed data | Piotr Sarnacki | 2010-09-20 | 1 | -0/+15 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add helper for loading seed data for engine and application | Piotr Sarnacki | 2010-09-20 | 2 | -0/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Updating error message on ruby_version_check.rb | Thiago Pradi | 2010-09-19 | 1 | -2/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Send 'rails runner' help message to stdout instead of stderr. | rohit | 2010-09-19 | 1 | -1/+1 |
| | | | | | | [#5661 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Remove existing migration when using 'rails generate model' with --force ↵ | David Trasbo | 2010-09-18 | 1 | -1/+5 |
| | | | | | | [#5526 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move capture to Kernel. [#5641 state:resolved] | Krekoten' Marjan | 2010-09-18 | 1 | -19/+1 |
| | |||||
* | Fix output of 'rails runner --help' [#4249 state:open] | rohit | 2010-09-18 | 1 | -1/+1 |
| | |||||
* | Update Rails' built in routes to use RouteSet#append | Carl Lerche | 2010-09-17 | 3 | -9/+3 |
| | |||||
* | Only add Rack::Cache to the middleware stack if ↵ | Sparky | 2010-09-15 | 1 | -2/+4 |
| | | | | config.action_controller.perform_caching is set. | ||||
* | Merge remote branch 'docrails/master' | Xavier Noria | 2010-09-14 | 3 | -3/+3 |
|\ | |||||
| * | Application settings are specified in application.rb and not environment.rb | rohit | 2010-09-14 | 3 | -3/+3 |
| | | |||||
* | | get csrf_meta_tag back to the generated layout in deference to existing ↵ | Xavier Noria | 2010-09-14 | 1 | -1/+1 |
| | | | | | | | | printed material, chomp also the generated HTML to be faithful to the output before the refactor | ||||
* | | First pass at Rack::Cache | wycats | 2010-09-13 | 1 | -0/+3 |
| | | |||||
* | | revises implementation and documentation of csrf_meta_tags, and aliases ↵ | Xavier Noria | 2010-09-11 | 1 | -1/+1 |
| | | | | | | | | csrf_meta_tag to it for backwards compatibilty | ||||
* | | Set default asset_path only for engine | Piotr Sarnacki | 2010-09-10 | 1 | -0/+1 |
| | | |||||
* | | revision of typo: crytographically [#5566 state:resolved] | ISHIKAWA Takayuki | 2010-09-07 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Add documentation on serving assets from engine strategies | Piotr Sarnacki | 2010-09-06 | 1 | -0/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Added task for creating symlinks to engines' public directories | Piotr Sarnacki | 2010-09-06 | 2 | -0/+21 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> |