Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Failing test for #6388 | Eric Allam | 2011-02-09 | 1 | -0/+28 |
| | |||||
* | remove locales external to the system before assertion | Aaron Patterson | 2011-01-12 | 1 | -5/+5 |
| | |||||
* | Do not take gems' i18n locales while testing locales paths | Piotr Sarnacki | 2010-12-31 | 1 | -2/+8 |
| | |||||
* | More love for engines tests | Piotr Sarnacki | 2010-12-19 | 1 | -73/+61 |
| | |||||
* | Use assert_body | John Firebaugh | 2010-12-19 | 1 | -22/+14 |
| | |||||
* | Temporary fix for railties test for newest rack changes | Piotr Sarnacki | 2010-12-19 | 1 | -0/+8 |
| | |||||
* | Fix tests in railties | Piotr Sarnacki | 2010-12-18 | 2 | -13/+13 |
| | |||||
* | Set proper engine's asset directories when assets are served from engine. | Piotr Sarnacki | 2010-12-16 | 1 | -0/+64 |
| | | | | | | | | | When using stylesheet_link_tag(:all) or javascript_include_tag(:all), assets directories are searched for css or js files. When config.serve_static_assets is set to true, those files can be served directly from engine's directories. That's why assets paths should be set individually for controllers inside engine if we want to serve static assets with ActionDispatch::Static | ||||
* | Rails::Engine.find(path) - method to find engine by path | Piotr Sarnacki | 2010-12-09 | 1 | -0/+19 |
| | |||||
* | Do not create table_name_prefix method on isolated module if the method ↵ | Piotr Sarnacki | 2010-11-22 | 1 | -0/+19 |
| | | | | | | already exists. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix failing tests. | José Valim | 2010-11-16 | 1 | -29/+7 |
| | |||||
* | Make deep copy of application generators on engine initialization. | Piotr Sarnacki | 2010-11-02 | 1 | -0/+3 |
| | | | | | Otherwise nested hashes will be same objects for both application and engine, which will result in overwriting each others values on changes. | ||||
* | Use application's generators defaults as engine defaults to not force users ↵ | Piotr Sarnacki | 2010-11-02 | 1 | -0/+17 |
| | | | | to manually set it | ||||
* | Remove task for creating symlinks for railties | Piotr Sarnacki | 2010-10-14 | 1 | -57/+0 |
| | |||||
* | Add task foo:install (where foo is plugin) as a shortcutinstall:migrations ↵ | Piotr Sarnacki | 2010-10-14 | 1 | -0/+24 |
| | | | | and foo:install:assets | ||||
* | Added foo:install:assets task that copies assets from plugins public ↵ | Piotr Sarnacki | 2010-10-14 | 1 | -0/+14 |
| | | | | | | | | | | | 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 Sarnacki | 2010-10-14 | 1 | -5/+5 |
| | | | | NOTEs, also puts to stdin | ||||
* | Add 'foo:install:migrations' task to copy migrations from foo engine | Piotr Sarnacki | 2010-10-09 | 1 | -1/+1 |
| | |||||
* | Load rake tasks defined in superclasses in context of railties | Piotr Sarnacki | 2010-10-09 | 1 | -0/+24 |
| | |||||
* | Rename rake railties:copy_migrations to rake railties:install:migrations and ↵ | Piotr Sarnacki | 2010-10-09 | 1 | -10/+17 |
| | | | | fix it to work with new copying strategy | ||||
* | Rename namespace method to isolate_namespace. | Piotr Sarnacki | 2010-10-09 | 2 | -9/+9 |
| | | | | | | | 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. | ||||
* | Fix engines test | Piotr Sarnacki | 2010-10-08 | 1 | -1/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Ensure rack body responds to each. | José Valim | 2010-10-08 | 1 | -3/+2 |
| | |||||
* | Add "a" to make it better English | Ryan Bigg | 2010-10-07 | 1 | -1/+1 |
| | | | | | | [#3796 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Provide a cleaner syntax for paths configuration that does not rely on ↵ | José Valim | 2010-10-06 | 1 | -4/+4 |
| | | | | method_missing. | ||||
* | Don't expect an AD::Response object back from the app. | José Valim | 2010-10-05 | 1 | -11/+10 |
| | |||||
* | Added config.app_generators to allow configuring application's generators ↵ | Piotr Sarnacki | 2010-09-30 | 1 | -0/+39 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Properly reload routes defined in class definition | Piotr Sarnacki | 2010-09-30 | 1 | -0/+40 |
| | | | | | | | | | | | | | | | | | 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 | -0/+20 |
| | | | | | | | | | 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 helper for loading seed data for engine and application | Piotr Sarnacki | 2010-09-20 | 1 | -0/+19 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix running engine_test in isolation | Piotr Sarnacki | 2010-09-19 | 1 | -1/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove unnecessary puts | Piotr Sarnacki | 2010-09-19 | 1 | -1/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move capture to Kernel. [#5641 state:resolved] | Krekoten' Marjan | 2010-09-18 | 1 | -13/+1 |
| | |||||
* | Add tests for Rack::Cache | Carlhuda | 2010-09-13 | 1 | -4/+13 |
| | |||||
* | Set default asset_path only for engine | Piotr Sarnacki | 2010-09-10 | 1 | -0/+28 |
| | |||||
* | Change app to main_app in mounted_helpers | Piotr Sarnacki | 2010-09-08 | 2 | -3/+3 |
| | |||||
* | Use railties:copy_migrations instead of db:copy_migrations | Piotr Sarnacki | 2010-09-06 | 1 | -3/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Added task for creating symlinks to engines' public directories | Piotr Sarnacki | 2010-09-06 | 1 | -0/+57 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Removed deprecated router API from railties | Piotr Sarnacki | 2010-09-05 | 2 | -3/+3 |
| | |||||
* | Remove more deprecated behavior from plugins. | José Valim | 2010-09-04 | 1 | -27/+0 |
| | |||||
* | Fixed tests after rebase | Piotr Sarnacki | 2010-09-03 | 1 | -4/+3 |
| | |||||
* | I've changed that test along the way, it should actually stay without changes | Piotr Sarnacki | 2010-09-03 | 1 | -2/+9 |
| | |||||
* | Use default_scope in isolated Engines to not force user to scope his routes | Piotr Sarnacki | 2010-09-03 | 2 | -16/+10 |
| | |||||
* | Remove namespace for isolated namespaced models in forms | Piotr Sarnacki | 2010-09-03 | 1 | -1/+64 |
| | |||||
* | Add possibility to explicitly call engine's routes through ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -0/+30 |
| | | | | polymorphic_routes, for example: polymorphic_url([blog, @post]) | ||||
* | Updated tests to use scope(:module => :engine_name) instead of namespace and ↵ | Piotr Sarnacki | 2010-09-03 | 2 | -23/+28 |
| | | | | updated mounted engine tests to actually use the namespacing | ||||
* | Include all helpers from non-namespaced engines | Piotr Sarnacki | 2010-09-03 | 1 | -1/+18 |
| | |||||
* | Modified polymorphic_url to check for model's namespace | Piotr Sarnacki | 2010-09-03 | 1 | -4/+30 |
| | | | | | | | | | | | This change allows using namespaced models with polymorphic_url, in the way that you would use them without namespace. Let's say that you have Blog::Post model in namespaced Engine. When you use polymorphic_path with Blog::Post instances, like in form_for(@post), it will look for blog_posts_path named url helper. As we are inside Blog::Engine, it's annoying to always use the prefix. With this commit, blog_ prefix will be removed and posts_path will be called. | ||||
* | Get rid of static_paths method and instead configure paths for ↵ | Piotr Sarnacki | 2010-09-03 | 1 | -0/+5 |
| | | | | ActionDispatch::Static in initializers | ||||
* | Add table_name_prefix to Engine's namespace automatically | Piotr Sarnacki | 2010-09-03 | 1 | -0/+2 |
| |