- 17 1月, 2013 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Fix date_select :selected option so you can pass it nil
-
由 Colin Burn-Murdoch 提交于
-
- 16 1月, 2013 20 次提交
-
-
由 Rafael Mendonça França 提交于
Don't rely on Hash key's ordering to configure default options
-
由 Vitor Baptista 提交于
If we set encoding latin1 for a PostgreSQL database, it calls PostgreSQLAdapter::create_database with options that have, among other things: { 'encoding' => 'latin1' } Then, we use reverse_merge(:encoding => "utf8") to setup the default encoding. In the end, the hash looks like: { :encoding => 'utf8', 'encoding' => 'latin1' } The call to options.symbolize_keys calls to_sym on each_key of this Hash. It usually means that the encoding passed overwrites the default utf8, but it's not guaranteed. So, we shouldn't rely on it. The same was happening in ActiveRecord::ConnectionHandling.
-
由 Carlos Antonio da Silva 提交于
-
由 Andrew White 提交于
adding regression test in master for #8631
-
由 Aditya Sanghi 提交于
-
由 Rafael Mendonça França 提交于
Allow a `:dirs` option to `SourceAnnotationExtractor.enumerate`
-
由 Rafael Mendonça França 提交于
Strong parameters exception handling
-
由 Rafael Mendonça França 提交于
Remove header bloat introduced by BestStandardsSupport middleware
-
由 Brian Alexander 提交于
-
由 Edward Anderson 提交于
The same headers were being duplicated on every request.
-
由 Carlos Antonio da Silva 提交于
Update guides/source/active_record_validations.md
-
由 Carlos Antonio da Silva 提交于
Cleaning up ActiveModel::Dirty tests
-
由 Brian D. Burns 提交于
Allows custom rake tasks to be defined using: SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
-
由 Brian D. Burns 提交于
-
由 Andrew White 提交于
This commit changes route defaults so that explicit defaults are no longer required where the key is not part of the path. For example: resources :posts, bucket_type: 'posts' will be required whenever constructing the url from a hash such as a functional test or using url_for directly. However using the explicit form alters the behavior so it's not required: resources :projects, defaults: { bucket_type: 'projects' } This changes existing behavior slightly in that any routes which only differ in their defaults will match the first route rather than the closest match. Closes #8814
-
由 Andrew White 提交于
This now allows the use of arrays like this: get '/foo/:action', to: 'foo', constraints: { subdomain: %w[www admin] } or constraints where the request method returns an Fixnum like this: get '/foo', to: 'foo#index', constraints: { port: 8080 } Note that this only applies to constraints on the request - path constraints still need to be specified as Regexps as the various constraints are compiled into a single Regexp.
-
由 Andrew White 提交于
-
由 Andrew White 提交于
Now that Journey has been integrated into ActionDispatch we can raise the exception ActionController::UrlGenerationError directly rather than raising the internal Journey::Router::RoutingError and then have ActionDispatch::Routing::RouteSet#generate re-raise the exception.
-
由 Anton Cherepanov 提交于
Duplicated `update`
-
由 Carlos Antonio da Silva 提交于
This reverts commit 8348f9ea, reversing changes made to 9dfe2d6f. Reason: this broke railties tests as explained in the issue, and the author is going to review and report back. https://github.com/rails/rails/pull/8930#issuecomment-12272671
-
- 15 1月, 2013 18 次提交
-
-
由 Attila Domokos 提交于
* Clarifying what the #changed method returns * Adding tests to describe what the #changed_attributes returns * Updating test name based on pull request comment * Moving the test lower in the file per pull request comment
-
由 Carlos Antonio da Silva 提交于
rake railties:install:migrations respects the order of railties
-
由 Carlos Antonio da Silva 提交于
This reverts commit 3fa00070. Reason: This message is usually not accurate and annoying: Redirected by ~/.rbenv/versions/1.9.3-p327-perf/lib/ruby/1.9.1/logger.rb:371:in `add'`
-
由 Carlos Antonio da Silva 提交于
We were previously rescuing "nil" when no exception class was found. This does work in 1.9.3, but does not in 2.0, raising an exception asking for a class or module to be given to the rescue clause. Thanks @yahonda for catching this.
-
由 Carlos Antonio da Silva 提交于
This reverts commit 1fc294f9, reversing changes made to fb9ac47c. Reason: these tests should run fine independent of database, since they should only take into account the configuration options. The problem was related to a change in the way "nil" is handled by the rescue clause, in Ruby 2.0 it raises an exception asking for class or module, in 1.9 it passes.
-
由 Xavier Noria 提交于
ActiveRecord <-> Active Record [ci skip]
-
由 Trung Lê 提交于
-
由 David Heinemeier Hansson 提交于
Account for ignored cookie set by turbolinks
-
由 Guillermo Iguaran 提交于
Use Rails 4 find_by in README [ci skip]
-
由 Trung Lê 提交于
-
由 Nick Reed 提交于
-
由 Rafael Mendonça França 提交于
Address test_create_when_database_exists_outputs_info_to_stderr failures
-
由 Rafael Mendonça França 提交于
test case for ActiveModel::Conversion#to_partial_path and namespaced models
-
由 Steve Klabnik 提交于
Rename :value to :selected for date_select, and add missing tests/docs
-
由 Yves Senn 提交于
-
由 Yasuo Honda 提交于
When tested with ruby-2.0.0-rc1 `rake test` executes this test even if the target adapter is not mysql nor mysql2.
-
由 Colin Burn-Murdoch 提交于
Add tests for time & datetime. Add documentation.
-
由 Jeremy Kemper 提交于
block. Breaks benchmark calls that return non-String values otherwise. Revert "add benchmark helper that works in erb" This reverts commit 904e544c. Conflicts: actionpack/lib/action_view/helpers.rb actionpack/lib/action_view/helpers/benchmark_helper.rb actionpack/test/template/benchmark_helper_test.rb
-