Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Add documentation on app_generators | Piotr Sarnacki | 2010-10-03 | 1 | -0/+20 | |
| | | ||||||
* | | Move routes_reloader to a class: RoutesReloader | Piotr Sarnacki | 2010-09-30 | 1 | -1/+1 | |
| | | ||||||
* | | Properly reload routes defined in class definition | Piotr Sarnacki | 2010-09-30 | 1 | -1/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | 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 | 1 | -0/+9 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.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> | |||||
* | Removed deprecated router API from railties | Piotr Sarnacki | 2010-09-05 | 1 | -11/+0 | |
| | ||||||
* | Small tidy up on Rails::Engine. | José Valim | 2010-09-04 | 1 | -48/+49 | |
| | ||||||
* | I've changed that test along the way, it should actually stay without changes | Piotr Sarnacki | 2010-09-03 | 1 | -6/+6 | |
| | ||||||
* | Use default_scope in isolated Engines to not force user to scope his routes | Piotr Sarnacki | 2010-09-03 | 1 | -0/+2 | |
| | ||||||
* | engines_blank_point should always be the last initializer in Engine | Piotr Sarnacki | 2010-09-03 | 1 | -5/+5 | |
| | ||||||
* | We should avoid creating additional initializers when we can, adding them ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -3/+1 | |
| | | | | makes boot process slower | |||||
* | Add some more docs on polymorphic_url with routes proxy | Piotr Sarnacki | 2010-09-03 | 1 | -0/+10 | |
| | ||||||
* | Include all helpers from non-namespaced engines | Piotr Sarnacki | 2010-09-03 | 1 | -2/+16 | |
| | ||||||
* | Get rid of static_paths method and instead configure paths for ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -0/+7 | |
| | | | | ActionDispatch::Static in initializers | |||||
* | Documented mounted helpers | Piotr Sarnacki | 2010-09-03 | 1 | -0/+29 | |
| | ||||||
* | Document engine_name | Piotr Sarnacki | 2010-09-03 | 1 | -0/+16 | |
| | ||||||
* | Added documentation for namespaced Engine | Piotr Sarnacki | 2010-09-03 | 1 | -2/+34 | |
| | ||||||
* | Add table_name_prefix to Engine's namespace automatically | Piotr Sarnacki | 2010-09-03 | 1 | -0/+8 | |
| | ||||||
* | Rename isolated_engine_for to namespace | Piotr Sarnacki | 2010-09-03 | 1 | -3/+3 | |
| | ||||||
* | Include application's helpers and router helpers by default, but include ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -0/+9 | |
| | | | | engine's ones for controllers inside isolated namespace | |||||
* | Engine's assets are now served with ActionDispatch::Static | Piotr Sarnacki | 2010-09-03 | 1 | -5/+4 | |
| | ||||||
* | Set asset_path to engine_name by default | Piotr Sarnacki | 2010-09-03 | 1 | -1/+5 | |
| | ||||||
* | Added tests for railtie_name and aliased it in engine as engine_name | Piotr Sarnacki | 2010-09-03 | 1 | -0/+2 | |
| | ||||||
* | Added ability to set asset_path for engines | Piotr Sarnacki | 2010-09-03 | 1 | -2/+21 | |
| | ||||||
* | Added documentation on endpoint, middeware stack and routes for Engine | Piotr Sarnacki | 2010-09-03 | 1 | -0/+60 | |
| | ||||||
* | Fix url generation for mounted Engine | Piotr Sarnacki | 2010-09-03 | 1 | -7/+2 | |
| | | | | | | | | | I added integration tests for generating urls in Engine and application and tweaked Engines to fully cooparate with new router's behavior: * Rails.application now sets ORIGINAL_SCRIPT_NAME * Rails.application also sets its routes as env['action_dispatch.parent_routes'] * Engine implements responds_to? class method to respond to all the instance methods, like #routes | |||||
* | Pass routes via env['action_dispatch.routes'], it's needed by routes to ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -1/+7 | |
| | | | | determine if it should generate prefix for mounted apps | |||||
* | Move singleton pattern to Railtie and remove Engine::Configurable and ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -12/+21 | |
| | | | | Application::Configurable in favor of unified Railtie::Configurable | |||||
* | Removed most of deprecated stuff from Application and Engine | Piotr Sarnacki | 2010-09-03 | 1 | -3/+0 | |
| | ||||||
* | Allow Engines loading its own environment file from config/environments | Piotr Sarnacki | 2010-09-03 | 1 | -0/+9 | |
| | ||||||
* | Removed ActionDispatch::Static, but left empty MiddlewareStack to unify app ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -6/+8 | |
| | | | | method between Engine and Application | |||||
* | Engine can now serve files with ActionDispatch::Static | Piotr Sarnacki | 2010-09-03 | 1 | -1/+10 | |
| | ||||||
* | Engine sets routes as default rack endpoint if no endpoint was given | Piotr Sarnacki | 2010-09-03 | 1 | -2/+5 | |
| | ||||||
* | Delegate non existing class methods to instance for Engine | Piotr Sarnacki | 2010-09-03 | 1 | -0/+6 | |
| | ||||||
* | Gather initializers from railties in engines to get rid of additional ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -0/+7 | |
| | | | | looping through initializers | |||||
* | Engine can now load its own plugins | Piotr Sarnacki | 2010-09-03 | 1 | -0/+5 | |
| | ||||||
* | Made Engine valid rack app with its own middleware stack | Piotr Sarnacki | 2010-09-03 | 1 | -0/+13 | |
| | ||||||
* | Config is deprecated on 1.8.8 and 1.9.3 use RbConfig | Santiago Pastorino | 2010-08-23 | 1 | -1/+1 | |
| | ||||||
* | A few changes were done in this commit: | José Valim | 2010-06-28 | 1 | -11/+10 | |
| | | | | | | * Added :autoload to engines path API and redefine usage to be in sync with 6f83a5036d8a9c3f8ed7; * 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; | |||||
* | renames load_(once_)paths to autoload_(once_)paths in dependencies and config | Xavier Noria | 2010-06-24 | 1 | -8/+8 | |
| | ||||||
* | Removing Metal from Rails 3. | wycats | 2010-05-29 | 1 | -6/+1 | |
| | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | Ensure that eager_load actually takes place just after the middleware stack ↵ | José Valim | 2010-05-15 | 1 | -13/+12 | |
| | | | | | | 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. | |||||
* | Reorganized initializers a bit to enable better hooks for common cases ↵ | wycats | 2010-05-15 | 1 | -5/+10 | |
| | | | | | | | | | | | | | | | 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. | |||||
* | Fix docs typo: app.middlewares -> app.middleware | Jeremy Kemper | 2010-04-29 | 1 | -1/+1 | |
| | ||||||
* | Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved] | Anil Wadghule | 2010-04-26 | 1 | -1/+2 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Regexp.escape(load_path) in add_routing_namespaces initializer [#4442 ↵ | Phil Smith | 2010-04-20 | 1 | -1/+1 | |
| | | | | | | state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Use correct RUBY_PLATFORM regex for Windows env [#4385 state:resolved] | Anil Wadghule | 2010-04-13 | 1 | -1/+1 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |