aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-19 19:53:26 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-19 19:53:26 -0200
commitcf15e027b9699c29e01e7c91296a84f378c1c2f0 (patch)
tree37478f51b6a641bed9371b9eae3c202d1148f51e /activerecord/CHANGELOG.md
parent3ea840355409dc205a9e0d027fc09f1452636969 (diff)
downloadrails-cf15e027b9699c29e01e7c91296a84f378c1c2f0.tar.gz
rails-cf15e027b9699c29e01e7c91296a84f378c1c2f0.tar.bz2
rails-cf15e027b9699c29e01e7c91296a84f378c1c2f0.zip
Improve CHANGELOG entry [ci skip]
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md14
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*