New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unquoted query generated by through-association scope #1361
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this prevents test state from accumulating, resulting in leaked objects and slow tests due to overactive GC.
this can provide a significant performance boost during testing, by preventing the GC from running too frequently.
Signed-off-by: José Valim <jose.valim@gmail.com>
… second" This reverts commit 35984f5.
This reverts commit 1e98920.
This reverts commit fd19ade.
…e' into 3-0-stable * jonleighton/deprecate_habtm_attributes-3-0-stable: Added deprecation warning for has_and_belongs_to_many associations where the join table has additional attributes other than the keys. Access to these attributes is removed in 3.1. Please use has_many :through instead.
… inadvertently causing javascript errors. This fixes CVE-2011-0446
… filesystems. This fixes CVE-2011-0449
Unfortunately the previous method of browser detection and XHR whitelisting is unable to prevent requests issued from some Flash animations and Java applets. To ease the work required to include the CSRF token in ajax requests rails now supports providing the token in a custom http header: X-CSRF-Token: ... This fixes CVE-2011-0447
…every ajax request.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
rails#6353 state:resolved] This handles the case where config.cache_classes is true and classes are loaded before the I18n load path has had a chance to be populated. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
…rails#6353 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
…apter also returns Time value
To make sure it will show block contents if it is placed after 'render :partial' [rails#5557 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
…ing to a BigDecimal. [rails#6365 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
…ved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
…t have validation errors
… YAML 1.1 compatibility
…thod 'prerequisites' for nil:NilClass (from rspec)
This fixes rake for me in RefineryCMS.
3 0 stable jruby jdom fixes
…lid SQL (id = ) if the record wasn't saved yet (i.e. the primary key's value is nil).
It seems something is wrong with your pull request. :P |
Whoops. Github exploded. Fixed the Pull-Request (now 1362). Sorry for the mess. |
jake3030
pushed a commit
to jake3030/rails
that referenced
this pull request
Jun 28, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Through-association owner's primary key wasn't quoted. This generates invalid SQL if the record wasn't saved yet (i.e. the primary key's value is nil) and you try to access the relation (should return an empty result).
Real-world example of generated sql: