- 12 2月, 2016 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
then we can stop scattering nil checks (e.g. `try`) through the class.
-
由 Sean Griffin 提交于
Allow `joins` to be unscoped Fixes #13775
-
由 Sean Griffin 提交于
UniquenessValidator exclude itself when PK changed
-
- 11 2月, 2016 26 次提交
-
-
由 Sean Griffin 提交于
In Rails 5, we're much more restrictive about when we do or don't cache a prepared statement. In particular, we never cache when we are sending an IN statement or a SQL string literal However, in the case of Adequate Record, we are *always* sending a raw SQL string, and we *always* want to cache the result. Fixes #23507 /cc @tgxworld
-
由 Kasper Timm Hansen 提交于
remove warnings from FinderMethods
-
由 Aaron Patterson 提交于
sort templates after looking them up in the from the paths cache
-
由 Jon Moss 提交于
Update active_record_querying.md
-
由 Aaron Patterson 提交于
Converting backtrace to strings before calling set_backtrace
-
由 Mark J. Lehman 提交于
Added important distinction between scopes and class methods.
-
由 yuuji.yaginuma 提交于
This removes the following warnings. ``` activerecord/lib/active_record/relation/finder_methods.rb:252: warning: ambiguous first argument; put parentheses or a space even after `-' operator activerecord/lib/active_record/relation/finder_methods.rb:258: warning: ambiguous first argument; put parentheses or a space even after `-' operator activerecord/lib/active_record/relation/finder_methods.rb:268: warning: ambiguous first argument; put parentheses or a space even after `-' operator activerecord/lib/active_record/relation/finder_methods.rb:274: warning: ambiguous first argument; put parentheses or a space even after `-' operator ```
-
由 Aaron Patterson 提交于
The view paths cache will eventually query the filesystem when looking up templates: https://github.com/rails/rails/blob/2db347bebc9d3f39b3c5e274b7c9beecfce73913/actionview/lib/action_view/template/resolver.rb#L224-L230 The order in which files are returned is file system dependent. Since the template digest [depends on its children](https://github.com/rails/rails/blob/2db347bebc9d3f39b3c5e274b7c9beecfce73913/actionview/lib/action_view/digestor.rb#L109-L115), the order of the dependencies will impact the fingerprint. This commit sorts the wildcard dependencies so that we get a consistent hash. Fixes #23592
-
由 Santiago Pastorino 提交于
Remove unused ReaderMethodCache and WriterMethodCache constants from ActiveRecord
-
由 Aaron Patterson 提交于
If we check the conditional at registration time, then we can avoid the conditional at runtime. This commit checks for view path support when the handler is registered so that runtime calls to `find_dependencies` won't need to check the conditional. The idea is that `register_tracker` is called only once where `find_dependencies` may be called many times.
-
由 Aaron Patterson 提交于
This commit walks the reflection tree and builds the scope chain functionally. It also removes the chain cache since the cache doesn't seem to have any impact on performance (I'd prefer to only cache at proven bottlenecks)
-
由 Kasper Timm Hansen 提交于
Add `response.parsed_body` to Integration Tests
-
由 Kasper Timm Hansen 提交于
Forgot to add this in the original pull request. No biggie, just show some examples.
-
由 Kasper Timm Hansen 提交于
When testing: ```ruby post articles_path, params: { article: { title: 'Ahoy!' } }, as: :json ``` It's common to want to make assertions on the response body. Perhaps the server responded with JSON, so you write `JSON.parse(response.body)`. But that gets tedious real quick. Instead add `parsed_body` which will automatically parse the reponse body as what the last request was encoded `as`.
-
由 Richard Schneeman 提交于
Set database poolsize via rails_max_threads
-
由 David Heinemeier Hansson 提交于
adds debug logging to actioncable connect
-
由 David Heinemeier Hansson 提交于
Array.second_to_last and Array.third_to_last access methods
-
由 Ben Sheldon 提交于
-
由 Brian Christian 提交于
-
由 Brian Christian 提交于
-
由 Tony Novak 提交于
Fixes #23058
-
由 kp 提交于
-
由 kp 提交于
-
由 David Heinemeier Hansson 提交于
Add `as` to encode a request as a specific mime type.
-
由 David Heinemeier Hansson 提交于
Fix edge case with ActionView::Template::Error reraise
-
由 David Heinemeier Hansson 提交于
set association name to generated fixtures if attribute is reference
-
- 10 2月, 2016 10 次提交
-
-
由 Vipul A M 提交于
Fix tiny grammar.
-
由 Mawueli Kofi Adzoe 提交于
-
由 प्रथमेश Sonpatki 提交于
Fix typo
-
由 John Cole 提交于
-
由 Jon Moss 提交于
Fix grammar errors in security and migrations docs master [ci skip]
-
由 Matt Michnal 提交于
Fixed errors in rails migrations docs [ci skip] Fixed errors in rails security docs [ci skip]
-
由 Xavier Noria 提交于
-
由 Brian Christian 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-