aboutsummaryrefslogtreecommitdiffstats
path: root/railties
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove extra whitespace and fix a commentAgis Anastasopoulos2013-03-091-2/+2
| | | minor comment fix for consistency
* Fix failing test regarding console change to fix sandboxingCarlos Antonio da Silva2013-03-081-11/+10
| | | | Introduced in be3e10cd26bc8ec29c6474d03a08a8e733108e7d.
* Merge pull request #8670 from sanemat/fix/rake-descVijay Dev2013-03-081-0/+2
|\ | | | | Add rake test description
| * Add rake test descriptionsanemat2013-01-011-0/+2
| | | | | | | | No behavior change
* | The console --sandbox transaction should not be joinableJon Leighton2013-03-081-10/+8
| | | | | | | | Thanks @neerajdotname for noticing this bug.
* | Fix rails console --sandboxJon Leighton2013-03-082-9/+77
| | | | | | | | | | | | I've also added a proper acceptance test which reproduced the issue. Closes #9513, #9515.
* | add prompt to 422 page to check logsNihad Abbasov2013-03-041-2/+3
| |
* | Bring config.allow_concurrency backJosé Valim2013-03-033-19/+48
| | | | | | | | | | Since the Rack::Lock still exists in development, let's provide a way to disable it explicitly.
* | Merge pull request #9512 from Jacke/masterGuillermo Iguaran2013-03-024-33/+127
|\ \ | | | | | | New 404, 422, 500 pages, they are more stylish and bring ruby essence…
| * | New beauty pages(404, 422, 500)Stanislav2013-03-024-33/+127
| | | | | | | | | | | | | | | | | | moving changelog note to unreleased section New beauty pages(404, 422, 500)
* | | Remove hard coded references to Active Record in railtiesJosé Valim2013-03-022-19/+7
| | |
* | | :scissors: extra blank lineAkira Matsuda2013-03-021-1/+0
|/ /
* | Support creating a table migration generatorSammy Larbi2013-03-011-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes you want to create a table without an associated model and test, which is also not a join table. With this commit, you can now do that. Example: rails g migration create_posts title:string or rails g migration CreatePosts title:string This commit also moves the template the model generator uses for the migration to the migration templates folder, as it seems a more sensible place for it now that it is shared code.
* | Ensure plugins generated with plugin new can boot the dummy applicationJosé Valim2013-02-286-53/+51
| |
* | There's no need to access Railties through self.classSantiago Pastorino2013-02-271-1/+2
| | | | | | | | Closes #9386
* | Merge pull request #9442 from czarneckid/adjust-generator-languageXavier Noria2013-02-261-1/+1
|\ \ | | | | | | Use less hyperbole in the language re: allowed parameters
| * | Use less hyperbole in the language re: allowed parametersDavid Czarnecki2013-02-261-1/+1
| | |
* | | Update CHANGELOGSRafael Mendonça França2013-02-261-0/+3
|/ /
* | Merge pull request #9419 from banyan/change-default-root-route-helperGuillermo Iguaran2013-02-252-2/+2
|\ \ | | | | | | Change default root route helper
| * | Change default root route helperKohei Hasegawa2013-02-262-2/+2
| | |
* | | Apparently we can't get away from adding lib to the load pathJosé Valim2013-02-251-0/+1
| | |
* | | Plugins can use a similar bootscript to Rails appsJosé Valim2013-02-251-8/+3
| | |
* | | Bump sass-rails and coffee-rails to 4.0.0.beta1 in GemfileGuillermo Iguaran2013-02-251-2/+2
| | |
* | | Remove sprockets-rails from the Gemfile generatorrobertomiranda2013-02-251-1/+0
|/ /
* | Preparing for 4.0.0.beta1 releaseDavid Heinemeier Hansson2013-02-252-2/+2
| |
* | Revert "Use sass compressor as the default CSS compressor"Guillermo Iguaran2013-02-251-1/+1
| | | | | | | | | | | | | | This reverts commit 3eef1c7c5d0c4538efb9e061b6fe68011f0352b1. The css compressor should be set in sass-rails plugin. Check https://github.com/rails/sass-rails/commit/339529f9f6433047df6358c0439e6641cb74f045 for the fix.
* | Use sass compressor as the default CSS compressorRafael Mendonça França2013-02-251-1/+1
| | | | | | | | | | | | | | With the new sprockets-rails we need to explicitly set the CSS compressor. See https://github.com/rails/sprockets-rails#changes-from-rails-3x
* | Improve `rake stats` for JavaScript and CoffeeScript.Hendy Tanata2013-02-254-46/+394
| | | | | | | | Ignore block comments and calculates number of functions.
* | Merge pull request #9401 from sikachu/master-remove-builder-optionRafael Mendonça França2013-02-2412-183/+7
|\ \ | | | | | | Remove `--builder` option from `rails` command
| * | Remove `--builder` option from `rails` commandPrem Sichanugrist2013-02-2412-183/+7
| | | | | | | | | | | | | | | | | | | | | Ability to use a custom builder by passing `--builder` (or `-b`) has been removed. Consider using application template instead. See this guide for more detail: http://guides.rubyonrails.org/rails_application_templates.html
* | | Merge pull request #9400 from senny/remove_auto_explain_threshold_in_secondsXavier Noria2013-02-243-19/+0
|\ \ \ | | | | | | | | remove config.auto_explain_threshold_in_seconds
| * | | remove AR auto-explain (config.auto_explain_threshold_in_seconds)Yves Senn2013-02-243-19/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | We discussed that the auto explain feature is rarely used. This PR removes only the automatic explain. You can still display the explain output for any given relation using `ActiveRecord::Relation#explain`. As a side-effect this should also fix the connection problem during asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie` forced a connection.
* / / Use sprockets-rails 2.0.0.rc3 in new appsGuillermo Iguaran2013-02-241-1/+1
|/ /
* | Revert "move config.assets.precompile into config/application.rb"Yves Senn2013-02-243-10/+6
| | | | | | | | | | | | | | This reverts commit 304f4d4c25ccabdbf97d37dd7a92a54d0b63a9c9. As it turns out everything should behave as it did and we don't need to move this configuration option.
* | guides/rails_guides moved up and out of the railties directorySam Ruby2013-02-231-1/+1
| |
* | Fix backwards compatibility with Rails 3 apps.Steve Klabnik2013-02-223-40/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we removed script/rails and introduced bin/rails, we accidentally introduced a regression. If you install Rails 4 as a gem, then try to do something in a Rails 3 application: $ rails g This will throw the 'please type rails new foo' message rather than the proper generator documentation message. This is because older apps don't have bin/rails. Therefore, we now *prefer* bin/rails, but still search for script/rails, and exec the one we find.
* | Update railties/lib/rails/application/configuration.rbiwiznia2013-02-211-3/+3
| | | | | | Better comment for database_configuration method
* | Update railties/lib/rails/application/configuration.rbiwiznia2013-02-211-1/+1
| | | | | | Changed comment that referenced the property #database_configuration_file, now it's paths["config/database"]
* | remove uncommented railties boot_test.rbYves Senn2013-02-211-20/+0
| |
* | Merge pull request #9341 from senny/move_precompiled_asset_config_to_applicationRafael Mendonça França2013-02-203-6/+10
|\ \ | | | | | | move config.assets.precompile into config/application.rb
| * | move config.assets.precompile into config/application.rbYves Senn2013-02-203-6/+10
| | |
* | | update changelogTerence Lee2013-02-211-0/+3
| | |
* | | run the load_structure test in the test environmentTerence Lee2013-02-211-3/+10
| | |
* | | test DATABASE_URL without database.yml aroundTerence Lee2013-02-211-0/+2
| | |
* | | standardize database_configuration to a hashTerence Lee2013-02-211-2/+6
|/ / | | | | | | | | | | | | make connection_url_to_hash a class method This als prevents loading database.yml if it doesn't exist but DATABASE_URL does
* | Better not use tab chars in the generator templateAkira Matsuda2013-02-201-5/+5
| |
* | Fix rake routes output in railties testCarlos Antonio da Silva2013-02-191-2/+4
| |
* | Remove config.autoload_paths from config/application.rbAndrew White2013-02-191-3/+0
| | | | | | | | | | | | | | | | | | | | Most application developers shouldn't be adding paths to `config.autoload_paths` as it won't be eagerly loaded so remove it from the generated config/application.rb file. If a developer does want to autoload from paths outside of the app directory then they should add the path to `config.eager_load_paths` as these paths are also autoloaded as well.
* | Don't unhook autoloading in productionAndrew White2013-02-191-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whilst autoloading is known to be not threadsafe, leaving it in place is a softer solution than failing hard when an application is deployed. Many older applications will have paths added to `autoload_paths` and ideally these should be eagerly loaded to be threadsafe. However one of these paths is quite often lib which could lead to unintended consequences due to the 'junk drawer' nature of this directory. Developers should refrain from adding paths to `autoload_paths` or `eager_load_paths` and use custom folders inside app for code that needs to be eagerly loaded and use `require` or `require_dependency` to explicitly load code from other locations.
* | Revert "Deprecate the `eager_load_paths` configuration"Andrew White2013-02-197-91/+66
| | | | | | | | | | | | | | | | | | | | | | Because of the possibility of lib being unintentionally eager loaded it's been agreed that we'll leave autoload paths and eager load paths separate for Rails 4.0. This reverts commit 0757b3388ffe4f44b60de950d40e18ef05055931. Conflicts: railties/CHANGELOG.md