diff options
author | Eric Steele <eric@iamericsteele.com> | 2014-03-15 21:49:04 -0400 |
---|---|---|
committer | Eric Steele <eric@iamericsteele.com> | 2014-03-15 22:11:36 -0400 |
commit | f47421f2a058a5ca845969e8d15be2028c3e6972 (patch) | |
tree | 306d0a4c41d4be400653368849cd43e065878544 /activerecord/CHANGELOG.md | |
parent | 4a883af296aad339a8aa1ffe2123428208938131 (diff) | |
download | rails-f47421f2a058a5ca845969e8d15be2028c3e6972.tar.gz rails-f47421f2a058a5ca845969e8d15be2028c3e6972.tar.bz2 rails-f47421f2a058a5ca845969e8d15be2028c3e6972.zip |
Extend fixture label replacement to allow string interpolation
Allows fixtures to use their $LABEL as part of a string instead
of limiting use to the entire value.
mark:
first_name: $LABEL
username: $LABEL1973
email: $LABEL@$LABELmail.com
users(:mark).first_name # => mark
users(:mark).username # => mark1973
users(:mark).email # => mark@markmail.com
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index d6044988f0..98f883fdb8 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,13 @@ +* Extend Fixture $LABEL replacement to allow string interpolation + Example: + + martin: + email: $LABEL@email.com + + users(:martin).email # => martin@email.com + + *Eric Steele* + * Add support for `Relation` be passed as parameter on `QueryCache#select_all`. Fixes #14361. |