aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move load_generators from Rails::Application to Rails::EngineStefan Sprenger2011-05-261-0/+12
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-251-3/+3
|\ | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * Minor typo describing engine helpersMatthew Daubert2011-05-221-2/+2
| |
| * Remove duplicate words.Uģis Ozols2011-05-201-1/+1
| |
* | Everyone receives app as argument for consistency.José Valim2011-05-251-1/+1
| |
* | Use sprockets prepend_path if its availableJoshua Peek2011-05-191-3/+9
|/
* parenthesize the arguments with splatAkira Matsuda2011-05-181-3/+3
| | | | to make sure we're not calling the :* operator
* Include lib/assets for sprocket pathsDavid Heinemeier Hansson2011-05-101-0/+1
|
* formatting results in commentsVijay Dev2011-05-041-16/+16
|
* Make ActionController::Base.modules_for_helpers and ↵Piotr Sarnacki2011-04-251-2/+2
| | | | ActionController::Base.all_helpers_from_path public methods
* Add Engine#helpers method which loads all the engine's helpersPiotr Sarnacki2011-04-251-0/+39
|
* Remove the ability for engines to serve assets from the public directory.José Valim2011-04-151-67/+7
|
* Fix tests.José Valim2011-04-151-13/+24
|
* Booya, sprockets now works from Engines.José Valim2011-04-151-0/+5
|
* Engines that use isolate_namespace with nested modules should set correct ↵Rolf Timmermans2011-03-281-2/+2
| | | | module prefix for their routes.
* refactored Engine.#find by giving an explicit name to a variable and ↵Diego Carrion2011-03-091-3/+3
| | | | | | | | reducing calls [#6529 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Railties typos.R.T. Lechow2011-03-051-3/+3
|
* only compute path.to_s onceAaron Patterson2011-03-021-1/+4
|
* Make all references to engines lowercase in docs.Matt Buck2011-01-191-36/+36
|
* Copy-edit and format Rails::Engine docs.Matt Buck2011-01-141-85/+93
|
* Should be isolated engine instead of namespaced enginePiotr Sarnacki2010-12-161-1/+1
|
* Ensure asset_path defaults to nil for applicationJosé Valim2010-12-091-1/+6
|
* Rails::Engine.find(path) - method to find engine by pathPiotr Sarnacki2010-12-091-0/+5
|
* Do not create table_name_prefix method on isolated module if the method ↵Piotr Sarnacki2010-11-221-2/+4
| | | | | | already exists. Signed-off-by: José Valim <jose.valim@gmail.com>
* There is no need to make isolated? method with bang-bang, just alias isolatedPiotr Sarnacki2010-11-161-4/+1
|
* Add missing autoload.José Valim2010-11-111-0/+1
|
* Remove unused Configurable in Rails::Engine and Rails::Application. Remove ↵zhengjia2010-11-111-1/+0
| | | | | | unnecessary railties load path in cli [#5871 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* delete from :number until the endSantiago Pastorino2010-10-151-1/+1
|
* Removed duplicated method find_root_with_flagPiotr Sarnacki2010-10-151-15/+0
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* in regexps, the dot in a character class is not a metacharacterXavier Noria2010-10-151-1/+1
|
* 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>