- 27 11月, 2012 12 次提交
-
-
由 Carlos Antonio da Silva 提交于
We are already in the AR namespace, there's no way for it to be undefined. See the cousin commit 13e72db7 Refactor a bit teardown fixtures to avoid two conditionals.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Accept symbols as #send_data :disposition value
-
由 Elia Schito 提交于
-
由 Rafael Mendonça França 提交于
Length validation handles correctly nil. Fix #7180 Conflicts: activemodel/CHANGELOG.md
-
由 Rafael Mendonça França 提交于
@steveklabnik can't spell 'distance.'
-
由 Steve Klabnik 提交于
-
由 Rafael Mendonça França 提交于
Add changelog for #7997.
-
由 Steve Klabnik 提交于
This was forgotten when we did the merge.
-
由 Carlos Antonio da Silva 提交于
Corrects typo in test name [ci skip]
-
由 Carlos Antonio da Silva 提交于
Log output from activemodel's railtie_test directly to STDOUT. There's no logging going on here, but since we initialize the app, the logger is set and the folder is automatically created. With this change, the default logger is not created, so there is no logging folder anymore. Conflicts: activemodel/test/cases/railtie_test.rb
-
由 Yves Senn 提交于
after this patch, running the tests in activemodel will no longer create an untracked log/ folder inside of activemodel
-
- 26 11月, 2012 16 次提交
-
-
由 Xavier Noria 提交于
Don't run explain on slow queries for database adapters that don't support it
-
由 Blake Smith 提交于
-
由 Andy Lindeman 提交于
-
由 Rafael Mendonça França 提交于
make sure that individual parts `ActiveModel` can be required by itself
-
由 Michal Zima 提交于
When nil or empty string are not allowed, they are not valid.
-
由 Andrew White 提交于
Move the routes for each test inside the test method so that it's easier to see which routes are applicable to which test. To ensure that each test wasn't invalidated the changes were done by first removing all of the routes, ensuring that all of the tests failed and then adding the routes back to each test one by one. One test for `assert_recognizes` was removed as it wasn't actually testing the defined routes and is now tested more thoroughly in routing_assertions_test.rb. One downside is that the test suite takes about 1s longer due to having to using `method_missing` for handling the url helpers as using `include url_helpers` isn't isolated for each test.
-
由 Carlos Antonio da Silva 提交于
Use Class.new with a block instead of tap to configure it.
-
由 Carlos Antonio da Silva 提交于
assert_template: validating option keys It only handles the keys locals, partial, layout and count. assert_template(foo: "bar") # raises ArgumentError assert_template(leiaute: "test") # raises ArgumentError
-
由 David Heinemeier Hansson 提交于
Add explicit opt-out for fragment cache digesting
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Drew Ulmer 提交于
This add support for sending an explicit opt-out of the "Russian-doll" cache digest feature on a case-by-case basis. This is useful when cache- expiration needs to be performed manually and it would be otherwise difficult to know the exact name of a digested cache key. More information: https://github.com/rails/cache_digests/pull/16
-
由 Roberto Soares 提交于
-
由 Carlos Antonio da Silva 提交于
assert_template("") will now fail no matter whether a template has been rendered or not.
-
由 Carlos Antonio da Silva 提交于
Don't call will_change! for datetime nil->"".
-
由 Yves Senn 提交于
-
- 25 11月, 2012 4 次提交
-
-
由 Yves Senn 提交于
-
由 Alisdair McDiarmid 提交于
Setting a nil datetime attribute to a blank string should not cause the attribute to be dirty. Fix #8310
-
由 Carlos Antonio da Silva 提交于
Document :hidden_field_id option for fields_for [ci skip]
-
由 Yves Senn 提交于
-
- 24 11月, 2012 8 次提交
-
-
由 Carlos Antonio da Silva 提交于
Introduced in 53ca22f2. Thanks @rochefort. [ci skip]
-
由 Carlos Antonio da Silva 提交于
This yields a small bit of performance improvement when building the defaults from constraints, specially considering that it's rather common for constraints to be empty. Also, there's a bit of duplicated code in here that I have to check before extracting.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Instead of iterating again over the options and setting one by one, we can just merge the recover hash back to the scope one since all keys match.
-
由 Carlos Antonio da Silva 提交于
Use the same :blocks key in the recover hash to revert the scope options later.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Roberto Soares 提交于
-