aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Improve custom configurationRafael Mendonça França2014-08-191-7/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Hashes can be assigned 2. We don't need a special level anymore The method chain only works in the top level. If users need a second level they need to assign a OrderedOptions to the key: config.resque.server = ActiveSupport::OrderedOptions.new config.resque.server.url = "http://localhost" config.resque.server.port = 3000 [Rafael Mendonça França + Carlos Antonio da Silva]
* | | Add a `required` option to the model generatorSean Griffin2014-08-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Syntax was chosen to follow the passing of multiple options to decimal/numeric types. Curly braces, and allowing any of `,`, `.`, or `-` to be used as a separator to avoid the need for shell quoting. (I'm intending to expand this to all columns, but that's another PR. The `required` option will cause 2 things to change. `required: true` will be added to the association. `null: false` will be added to the column in the migration.
* | | Merge pull request #16359 from skanev/after-bundle-in-rails-templatesYves Senn2014-08-061-0/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add an after_bundle callback in Rails templates Conflicts: railties/CHANGELOG.md
| * | | Add an after_bundle callback in Rails templatesStefan Kanev2014-08-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | The template runs before the generation of binstubs – this does not allow to write one, that makes an initial commit to version control. It is solvable by adding an after_bundle callback.
* | | | Pull in the custom configuration concept from dhh/custom_configurationDavid Heinemeier Hansson2014-08-031-0/+17
|/ / /
* / / Merge pull request #16328 from noinkling/template_password_confirmation_fixYves Senn2014-07-291-0/+5
|/ / | | | | | | Give password_confirmation div the "field" class in the scaffold generator "_form" partial
* | Add Rails::Application#config_forRafael Mendonça França2014-07-151-0/+18
| | | | | | | | | | This is a convenience for loading configuration for the current Rails environment.
* | Synced 4.2 release notes with the latest commits.Godfrey Chan2014-07-111-1/+1
| | | | | | | | | | Also reordered some of the items to put newer ones on top (same order as CHANGELOGs), which makes it easier to diff while we are still working on it.
* | Change back occurrences of SQLite(3) to sqlite3 when referring to theZachary Scott2014-07-061-1/+1
| | | | | | | | adapter, fixed from #16057 [ci skip]
* | [ci skip] /sqlite/i --> SQLiteAkshay Vishnoi2014-07-061-1/+1
| |
* | Deprecate Rails::Rack::LogTailerRafael Mendonça França2014-06-171-0/+4
| | | | | | | | | | | | | | | | It was being used by Rails for show the development logs but since Rails 4 it is not being used anymore on the framework. This class seems to be private but it were part of the public API we are deprecating before removing.
* | Add a generic --skip-gems options to generatorRafael Mendonça França2014-06-171-0/+10
| | | | | | | | | | | | | | | | | | | | Also remove --skip-turbolinks. This option is useful if users want to remove some gems like jbuilder, turbolinks, coffee-rails, etc that don't have specific options on the generator. rails new my_app --skip-gems turbolinks coffee-rails
* | Emit suggested generator names when not foundschneems2014-06-041-0/+4
|/ | | | | | | | | | | | | | | When someone types in a generator command it currently outputs all generators. Instead we can attempt to find a subtle mis-spelling by running all generator names through a levenshtein_distance algorithm provided by rubygems. So now a failure looks like this: ```ruby $ rails generate migratioooons Could not find generator 'migratioooons'. Maybe you meant 'migration' or 'integration_test' or 'generator' Run `rails generate --help` for more options. ``` If the suggestions are bad we leave the user with the hint to run `rails generate --help` to see all commands.
* `bin/setup` script to bootstrap applications.Yves Senn2014-05-301-0/+4
|
* Revert "Merge pull request #12778 from etehtsea/rake-default-fix"Yves Senn2014-05-281-4/+0
| | | | | | | | | | | | | This reverts commit ec0a2b57f67c9153cb5f7bbe2a3f66d13fe64bdd, reversing changes made to a8bd7b16260c217290ef8fe3a166fcceac442c62. This reverts commit 555ec36522011862c03b483c53be32410594a51e This reverts commit 555ec36522011862c03b483c53be32410594a51e By default, Rails uses the `default` Rake task to run all tests. This commit changed the environment of the default task to `development`. This clears the development database and has other negative consequences.
* Replace double quotes with single quotes while adding an entry into Gemfilealexbel2014-05-261-0/+4
|
* Future port c8ddb61Zachary Scott2014-05-231-2/+1
|
* Default config.assets.digests to true in developmentDan Kang2014-05-171-0/+4
|
* Use Rails::Paths::Path#existent in database_configurationPier-Olivier Thibault2014-05-071-0/+5
| | | | | | | | | | | | | Database configuration was trying to load the first path that config.paths['config/database'] was returning even if the path didn't exist in the filesystem. Because Rails::Paths::Path has the possibility to return more than 1 path (as an array), database_configuration should filter down the paths to the existing one and then load the first one. This would make it possible to move the database.yml file and add the new path to paths['config/database'] and still load the configurations.
* skip-git should not hit git commands plugin generatorsArun Agrawal2014-05-021-0/+6
|
* Make console and generators blocks works at Application instance levelRafael Mendonça França2014-04-141-0/+6
| | | | | | | Like rake tasks and runner blocks these blocks should also being shared between applications since they are stored at the classes. Fixes #14748
* Move assets precompile (and version) to an initializerMatthew Draper2014-04-111-0/+4
| | | | | sprockets-rails 2.1 needs the precompile list to be available in all environments.
* Add CHANGELOG entry for #12778 [ci skip]Rafael Mendonça França2014-03-281-0/+4
|
* Remove sqlite3 lines from .gitignore if the application is not using sqlite3.Dmitrii Golub2014-03-241-0/+4
|
* Add Changelog Entry ref #14379robertomiranda2014-03-171-0/+8
|
* Removed unnecessary command "application"Arun Agrawal2014-03-101-0/+4
|
* Make the rails:template rake task load initializersRobin Dupret2014-03-081-0/+6
| | | | | | | | | | | Templates could rely on irregular inflections or external libraries for instance so we should load the application's initializers when running the rails:template task. The introducing commit of this feature is f7f11361 ; the initializers have never been loaded invoking this task. Fixes #12133.
* Introduce `Rails.gem_version`Prem Sichanugrist2014-03-051-0/+15
| | | | | | | | | | | | | | | | | | | This method return `Gem::Version.new(Rails.version)`, suggesting a more reliable way to perform version comparison. Example: Rails.version #=> "4.1.2" Rails.gem_version #=> #<Gem::Version "4.1.2"> Rails.version > "4.1.10" #=> false Rails.gem_version > Gem::Version.new("4.1.10") #=> true Gem::Requirement.new("~> 4.1.2") =~ Rails.gem_version #=> true This was originally introduced as `.version` by @charliesome in #8501 but got reverted in #10002 since it was not backward compatible. Also, updating template for `rake update_versions`.
* Avoid namespacing routes inside enginesRobin Dupret2014-02-261-0/+9
| | | | | | | | | | | | Since #11544, invoking the controller generator, any generated route is namespaced according to the class_path method. Since a mountable plugin is namespaced, creating a controller inside would generate a namespaced route based on the engine's name. The controller generator now relies on regular_class_path which does not contain the class hierarchy but the given path. Fixes #14079.
* Point master changelogs to 4-1-stable branchCarlos Antonio da Silva2014-02-251-312/+1
| | | | Remove 4-1 related entries from master [ci skip]
* Revert "Only lookup `config.log_level` for stdlib `::Logger`. Closes #11665."Guillermo Iguaran2014-02-211-7/+0
| | | | | | | | | | | | This reverts commit e0a521cfcd13e4d1f0ae8ab96004289e1c020f71. Conflicts: railties/CHANGELOG.md We expect loggers to quack like stdlib logger. If log4r needs different level= assignment, using a Logger-quacking wrapper is the way to do it. Fixes #14114.
* do not crash when `config/secrets.yml` is blank.Yves Senn2014-02-121-0/+4
|
* Merge branch 'dump-schema-after-migration-flag' of ↵Xavier Noria2014-02-061-0/+7
|\ | | | | | | | | | | | | git://github.com/emilsoman/rails into emilsoman-dump-schema-after-migration-flag Conflicts: activerecord/CHANGELOG.md
| * Add config to disable schema dump after migrationEmil Soman2014-02-061-0/+7
| | | | | | | | | | | | | | | | | | * Add a config on Active Record named `dump_schema_after_migration` * Schema dump doesn't happen if the config is set to false * Set default value of the config to true * Set config in generated production environment file to false * Update configuration guide * Update CHANGELOG
* | synchronize 4.1 release notes with CHANGELOGS. [ci skip]Yves Senn2014-02-061-1/+1
|/ | | | /cc @chancancode
* Add CreateMigration actionGert Goet2014-01-281-0/+6
| | | | | | | | | | This Thor-action isolates the logic whether to (over-)write migration and what is shown to the user. It's modelled after Thor's CreateFile-action. This solves the issue that removing a non-existing migration, tried to remove the template-path (#13588). Related issues: #12674
* Add a missing changelog entry for #13825 [ci skip]Robin Dupret2014-01-251-0/+6
|
* Update Changelog, Spring is under rails/spring [ci skip]robertomiranda2014-01-191-1/+1
|
* Unify changelog entries about single quotes [ci skip]Carlos Antonio da Silva2014-01-151-5/+1
|
* Use single quotes in generated filesChulki Lee2014-01-141-0/+4
|
* single quotes for controller generated routesCristian Mircea Messel2014-01-141-0/+4
| | | | | | | | | | Write routes in route.rb with single quotes get 'welcome/index' instead of get "welcome/index"
* Only lookup `config.log_level` for stdlib `::Logger`. Closes #11665.Yves Senn2014-01-131-0/+7
| | | | | | | | This prevents Rails from assigning meaningless log levels to third party loggers like log4r. If `Rails.logger` is not `kind_of?(::Logger)` we simply assign the `config.log_level` as is. This bug was introduced by #11665.
* fixes a typo in a CHANGELOGXavier Noria2014-01-121-1/+1
|
* upgrade SDocXavier Noria2014-01-121-0/+4
| | | | Kudos to @zzak for taking over SDoc and make it work with RDoc 4.
* Automatically maintain test database schemaJon Leighton2014-01-021-0/+6
| | | | | | | | | | | | | | * Move check from generated helper to test_help.rb, so that all applications can benefit * Rather than just raising when the test schema has pending migrations, try to load in the schema and only raise if there are pending migrations afterwards * Opt out of the check by setting config.active_record.maintain_test_schema = false * Deprecate db:test:* tasks. The test helper is now fully responsible for maintaining the test schema, so we don't need rake tasks for this. This is also a speed improvement since we're no longer reloading the test database on every call to "rake test".
* Update CHANGELOG [ci skip]José Valim2013-12-231-0/+5
|
* Add a changelog entry for #13326 [ci skip]Robin Dupret2013-12-211-0/+8
|
* `html` and `text` templates for mailers by defaultKassio Borges2013-12-201-0/+4
|
* Make possible to use symbol as the verifier nameRafael Mendonça França2013-12-191-3/+3
|
* Change the message verifier argument to verifier_nameRafael Mendonça França2013-12-191-2/+2
|