aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Use railtie_name to correctly get name from pluginsPiotr Sarnacki2010-10-141-1/+1
|
* Update documentation for new tasksPiotr Sarnacki2010-10-141-7/+8
|
* Add task foo:install (where foo is plugin) as a shortcutinstall:migrations ↵Piotr Sarnacki2010-10-141-0/+6
| | | | and foo:install:assets
* Added foo:install:assets task that copies assets from plugins public ↵Piotr Sarnacki2010-10-141-5/+5
| | | | | | | | | | | directory to application's public directory This is the most simple and naive approach: just copy every files from engine to app. The only exception is when file has changed, in that case developer will be asked if he wants to rename the field. There is no need to make this task more sophisticated as 3.1 will be shipped with better assets handling and it will be the default way to handle things.
* Do not treat information about skipped migrations as WARNINGs but as a ↵Piotr Sarnacki2010-10-141-0/+6
| | | | NOTEs, also puts to stdin
* Updated DOCS for engines and added a couple TODOs. Also, commented internal ↵José Valim2010-10-111-34/+48
| | | | railties rake tasks description.
* Add 'foo:install:migrations' task to copy migrations from foo enginePiotr Sarnacki2010-10-091-0/+14
|
* Rename namespace method to isolate_namespace.Piotr Sarnacki2010-10-091-10/+10
| | | | | | | This change caused by confusion caused by calling engine "namespaced". Stuff inside engine can be namespaced for every engine. This method is not actually namespacing anything, it's isolating engine within the given namespace.
* Refactored routes reloading to use RouteSet#append instead keeping block in ↵Piotr Sarnacki2010-10-081-5/+3
| | | | | | Engine Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-10-061-1/+1
|\
| * Fixed typo in engine documentationThomas McDonald2010-10-061-1/+1
| |
* | Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-27/+32
| | | | | | | | method_missing.
* | Use RbConfig instead of Config for 1.9.3 compatibility.José Valim2010-10-051-1/+1
| |
* | Add documentation on app_generatorsPiotr Sarnacki2010-10-031-0/+20
| |
* | Move routes_reloader to a class: RoutesReloaderPiotr Sarnacki2010-09-301-1/+1
| |
* | Properly reload routes defined in class definitionPiotr Sarnacki2010-09-301-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 Sarnacki2010-09-301-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 changesPiotr Sarnacki2010-09-201-3/+21
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Strengthen documantation on engine's migrations and seed dataPiotr Sarnacki2010-09-201-0/+15
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add helper for loading seed data for engine and applicationPiotr Sarnacki2010-09-201-0/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add documentation on serving assets from engine strategiesPiotr Sarnacki2010-09-061-0/+10
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Removed deprecated router API from railtiesPiotr Sarnacki2010-09-051-11/+0
|
* Small tidy up on Rails::Engine.José Valim2010-09-041-48/+49
|
* I've changed that test along the way, it should actually stay without changesPiotr Sarnacki2010-09-031-6/+6
|
* Use default_scope in isolated Engines to not force user to scope his routesPiotr Sarnacki2010-09-031-0/+2
|
* engines_blank_point should always be the last initializer in EnginePiotr Sarnacki2010-09-031-5/+5
|
* We should avoid creating additional initializers when we can, adding them ↵Piotr Sarnacki2010-09-031-3/+1
| | | | makes boot process slower
* Add some more docs on polymorphic_url with routes proxyPiotr Sarnacki2010-09-031-0/+10
|
* Include all helpers from non-namespaced enginesPiotr Sarnacki2010-09-031-2/+16
|
* Get rid of static_paths method and instead configure paths for ↵Piotr Sarnacki2010-09-031-0/+7
| | | | ActionDispatch::Static in initializers
* Documented mounted helpersPiotr Sarnacki2010-09-031-0/+29
|
* Document engine_namePiotr Sarnacki2010-09-031-0/+16
|
* Added documentation for namespaced EnginePiotr Sarnacki2010-09-031-2/+34
|
* Add table_name_prefix to Engine's namespace automaticallyPiotr Sarnacki2010-09-031-0/+8
|
* Rename isolated_engine_for to namespacePiotr Sarnacki2010-09-031-3/+3
|
* Include application's helpers and router helpers by default, but include ↵Piotr Sarnacki2010-09-031-0/+9
| | | | engine's ones for controllers inside isolated namespace
* Engine's assets are now served with ActionDispatch::StaticPiotr Sarnacki2010-09-031-5/+4
|
* Set asset_path to engine_name by defaultPiotr Sarnacki2010-09-031-1/+5
|
* Added tests for railtie_name and aliased it in engine as engine_namePiotr Sarnacki2010-09-031-0/+2
|
* Added ability to set asset_path for enginesPiotr Sarnacki2010-09-031-2/+21
|
* Added documentation on endpoint, middeware stack and routes for EnginePiotr Sarnacki2010-09-031-0/+60
|
* Fix url generation for mounted EnginePiotr Sarnacki2010-09-031-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 Sarnacki2010-09-031-1/+7
| | | | determine if it should generate prefix for mounted apps
* Move singleton pattern to Railtie and remove Engine::Configurable and ↵Piotr Sarnacki2010-09-031-12/+21
| | | | Application::Configurable in favor of unified Railtie::Configurable
* Removed most of deprecated stuff from Application and EnginePiotr Sarnacki2010-09-031-3/+0
|
* Allow Engines loading its own environment file from config/environmentsPiotr Sarnacki2010-09-031-0/+9
|
* Removed ActionDispatch::Static, but left empty MiddlewareStack to unify app ↵Piotr Sarnacki2010-09-031-6/+8
| | | | method between Engine and Application
* Engine can now serve files with ActionDispatch::StaticPiotr Sarnacki2010-09-031-1/+10
|
* Engine sets routes as default rack endpoint if no endpoint was givenPiotr Sarnacki2010-09-031-2/+5
|
* Delegate non existing class methods to instance for EnginePiotr Sarnacki2010-09-031-0/+6
|