diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-19 19:53:26 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-19 19:53:26 -0200 |
commit | cf15e027b9699c29e01e7c91296a84f378c1c2f0 (patch) | |
tree | 37478f51b6a641bed9371b9eae3c202d1148f51e /activerecord | |
parent | 3ea840355409dc205a9e0d027fc09f1452636969 (diff) | |
download | rails-cf15e027b9699c29e01e7c91296a84f378c1c2f0.tar.gz rails-cf15e027b9699c29e01e7c91296a84f378c1c2f0.tar.bz2 rails-cf15e027b9699c29e01e7c91296a84f378c1c2f0.zip |
Improve CHANGELOG entry [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 149a3e6fc4..614059a94f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,18 +1,16 @@ -* Improve the default select when from is used. +* Improve the default select when `from` is used. Previously, if you did something like Topic.from(:temp_topics), it would generate SQL like: - SELECT topics.* FROM temp_topics; + SELECT topics.* FROM temp_topics; - Which is useless, cause obviously there's not a topics table to select - from. So one would always have to include a select to override the - default behavior. Now the default if you use from is just *: + Which is will cause an error since there's not a topics table to select + from. - SELECT * FROM temp_topics; + Now the default if you use from is just `*`: - Which may not be what you want in all cases, but is at least usable - in some cases. + SELECT * FROM temp_topics; *Cody Cutrer* |