forked from kristianmandrup/mongoid-geo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
undid freeze on distance and added spec to ensure distance can be cal…
…culated and set multiple times for same instance
- Loading branch information
1 parent
f26af8a
commit 6f400b9
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ module Distance | |
|
||
def set_distance dist | ||
@distance = dist | ||
@distance.freeze | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters