Skip to content

Commit

Permalink
fix issue with custom getter not passing options along
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhansen committed May 7, 2015
1 parent 74262d3 commit 40814b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Next
# 2.1.1
- [BUG] .get() now passes along options correctly when using a custom getter
- [FEATURE] Lock modes in Postgres now support `OF table`
- [FEATURE] New transaction lock modes `FOR KEY SHARE` and `NO KEY UPDATE` for Postgres 9.3+
- [FEATURE/REFACTOR] Rewritten scopes with complete support for includes and scopes across associations
Expand Down
2 changes: 1 addition & 1 deletion lib/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ module.exports = (function() {
if (this._hasCustomGetters) {
for (_key in this._customGetters) {
if (this._customGetters.hasOwnProperty(_key)) {
values[_key] = this.get(_key);
values[_key] = this.get(_key, options);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sequelize",
"description": "Multi dialect ORM for Node.JS",
"version": "2.1.0",
"version": "2.1.1",
"author": "Sascha Depold <[email protected]>",
"contributors": [
{
Expand Down

0 comments on commit 40814b7

Please sign in to comment.