| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`setup do` creates unnecessary allocations of proc objects in test
callbacks. This prevents that from happening and results in faster code.
Originally I had done this as `def setup` and all Railties tests passed.
See 044f9ab. Later it was reported there was an issue with this that
caused routes in tests to be nil because devs don't generally call
`super` in their test setups. Because of that I reverted the commit
until I could find a suitble replacement.
`before_setup` esentially does the same thing but without the
requirement that applications call `super` in their test setups.
|
|
|
|
|
|
| |
`*args` is not required here and should be avoided when not necessary
because `*args` are slower than `args` and create unnecessary array
allocations.
|
| |
|
|\
| |
| | |
Clean up debugging guide and fix minor grammatical errors[ci skip]
|
| | |
|
|\ \
| | |
| | | |
[ci skip] Fix example codes of form_for method
|
| |/ |
|
|\ \
| |/
|/| |
Added missing fullstop in engine API docs [ci skip]
|
| | |
|
|\ \
| | |
| | | |
Improvement on Activerecord CHANGELOG.md [ci skip]
|
| | | |
|
|\ \ \
| | | |
| | | | |
Update documentation to contain a 24 char token [ci skip]
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This illustrates the purpose of the block for `link_to_if` and
`link_to_unless` helper methods.
It should help to prevent further mistakes like #19844.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
stevenspiel/link_to_if_block_helper_addition"
This reverts commit d459b001b43d25053e7982e96eb8383538a6e358, reversing
changes made to 4d4950fae9e2a6970b5f1793aadc56a0b44e28a3.
:sweat:
The block is not supposed to be passed to `link_to`. It's used for a
customized behavior of the `condtion = false` case. The docs
illustrate that like so:
```
<%=
link_to_if(@current_user.nil?, "Login", { controller: "sessions", action: "new" }) do
link_to(@current_user.login, { controller: "accounts", action: "show", id: @current_user })
end
%>
```
|
|\ \ \
| | | |
| | | |
| | | | |
Update url_helper.rb
|
| | | |
| | | |
| | | | |
add block to link_to_if when condition is true
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
match a expected value with message of `assert_equal` in AJ helper methods
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Nodoc validate_index_length! method
|
| | | | |
| | | | |
| | | | |
| | | | | |
- This method is used only by adapters to validate length of new index names.
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Added documentation for PostGreSQL database_statements [ci skip]
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
- Added documentation for index_name_exists? and rename_index.
- Also changed rails to \Rails in documentation of
allowed_index_name_length.
|
|\ \ \ \
| | | | |
| | | | | |
Fix style/grammar/typos in Caching guide.
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
* avoid using unnecessary commas
* fix some typos
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Document :tld_length option for cookies.
|
| | |_|/
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
Add missing error messages for sucker_punch, sneakers and qu
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
adapters [ci skip]
fix error message
change raise to use rails conventions
fix misspells
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
CHANGELOG punctuation fix
|
| | |/ / /
| |/| | |
| | | | | |
Punctuation fix
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit 00aa1afae3821dd858dec7111bcdf230b12040d7, reversing
changes made to b584cc68fc28492147ed3ed127ad8a7441ca8161.
Reason:
As far as we can tell, this should not be the case. Both localhost, 127.0.0.1
and ::1 is "supposed to work", so this is probably a bug somewhere.
Reopening #19815 instead.
|
|\ \ \ \
| | | | |
| | | | | |
[ci skip] Correct grammar, add docs to ActiveRecord migration generator
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Make ActionMailer #cache helper a no-op, not an exception
|
|/ / / / / |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Remove use of mocha in the named base tests
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Rewording
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Rewording in accordance with the documentation guidelines (‘Prefer
wordings that avoid "you"s and "your”s.’) and to remove in particular
“if you'd call”.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Previews when `mail` wasn't called (NullMail instances).
|
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
While this was true before when every `dd` had a value,
this patch makes sure that everything keeps lining up even
when the `dd` node is blank.
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Make sure you execute rake rdoc from rails root directory [ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
1. Make clear where rake rdoc is executed
2. Make clear where the generated HTML files for the guides are stored
3. Use bundler 1.3.5 or later
|