ruby 2.0.0 (r38432) later warned unused variables. if you run rake test, some testcase is fail. because this testcase read $stderr with 2.0.0 warning messages.
I think this testcase is enough for confirmation of display warning mes…
I guess not so many people are using Application Template feature, but I like it.
I use with .railsrc which specifies the template path.
However, sometimes I would like to create bare rails with the command rails new foo,
but I …
When someone gets a routing exception, the routes are rendered (starting in Rails 4.0). This PR brings parity between the html routes in the rails/info/routes path and when rendered from an exception. This is the continuation of #8521 …
This is fix for #8528 pull request. I just add tests for all possible variants (with invalid data).
Fixes this:
[1] pry(main)> require 'active_support/core_ext/integer/time'
=> true
[2] pry(main)> 3.months
NameError: uninitialized constant Integer::ActiveSupport
Reported in #8531
Hello all!
The PostgreSQL version 9.2 and higher supports a Range Types. I think that would be nice if AR supports its too. For now I just finished intrange type.
Thanks.
Hello all!
The PostgreSQL version 9.2 and higher supports a Range Types. I think that would be nice if AR supports its too. For now I just finished intrange type.
Thanks.
Removes support for :encode, :replace_at, and :replace_dot options from the mail_to helper. Support for these options has been extracted to the actionview-encoded_mail_to gem.
This is DHH's idea. Discussion: [rails/tur…
The code in SQLite3Adapter#copy_table_indexes wrongly renamed indexes when using alter_table. This only happened for indexes, which begin with the table name. As soon as they had a prefix it worked.
This patch makes `#copy_table_i…
Backport of #8500
Closes #8492
Conflicts:
activerecord/test/cases/migrator_test.rb
The migrator_test.rb does not exist on rails/3-2-stable. I incorporated the test-case into the migrations_test.rb
The Regexp was to wide and matched folders named with numbers and the text 'rb' as a migration. This led to problems when you have a migration inside a subdirectory named eg. "10_urban".
I added a test-case to reproduce the issue and …
By formatting routes for different media (txt/html) we can apply optimizations based on the format. We can include meta-data in the HTML to allow a rich experience while rendering and viewing the routes. This PR shows route helpers as th…
Was unable to use database_cleaner in CI environment without this change. Right now Rails 3.2.9 and master both just try to disable all triggers including the RI_ConstraintTriggers which it cannot, then it tries to enable the RI_Constr…
I discovered that the Active Record Basics guide is not in the guides index. Since this is the introduction to a very big and important module, I figured it should be revived.
I'm currently in the process of reading it whole to identi…
Use \A instead of ^, and make the alteration shorter.
This improves upon #8468.
Thanks for your consideration.
This is a backport of #8450 and it resolves the issue described in #8448
Conflicts:
actionmailer/CHANGELOG.md
actionmailer/lib/action_mailer/base.rb
Such request can happen on Internet Explorer. When we redirect
after multipart form submission, the request type is changed
to GET, but Content-Type is preserved as multipart. GET request
cannot have multipart body and that caused Rails …
Hash.from_xml was very complicated, and so we decided to take a stab at
refactoring it. This is a work in progress that we want to get feedback on.
Basically, instead of defining a huge method on Hash, we made a utility
object for actua…
utilize find_in_batches so large collections are loaded in segments to avoid hitting memory limits with large collections
The guide mentions that the 'rails' user is needed, but doesn't
explicitly include the command to do so.
This is an alternative implementation to #7771 thanks to the advice of @spastorino
Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/in…
When setting the layout either by referencing a method with a symbol or supplying a Proc there is no way to fall back to the default lookup behavior if desired instead returning nil will render no template.
This patch changes this behav…