Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
odinsride committed Feb 25, 2019
2 parents 2f9ab6d + d09e411 commit 2c9d3f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,7 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] changes

## [v1.2.0] - 2018-02-24
## [v1.2.1] - 2019-02-24

### Fixed
- Transaction attachments were not receiving the transaction ID in the filename. This has been corrected.
- Downgraded bundler to 1.16.2 due to deployment errors

## [v1.2.0] - 2019-02-24

### Added
- Accounts can be deactivated, which hides them from the main account list. Inactive accounts can be found from the user menu and reactivated at any time. This provides a non-destructive method of archiving an account for historical purposes. Deleting accounts is no longer possible from the UI.
Expand Down Expand Up @@ -81,6 +87,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0


[Unreleased]: https://github.com/odinsride/olubalance/compare/v1.2.0...HEAD
[v1.2.1]: https://github.com/odinsride/olubalance/compare/v1.2.0...v1.2.1
[v1.2.0]: https://github.com/odinsride/olubalance/compare/v1.1.3...v1.2.0
[v1.1.3]: https://github.com/odinsride/olubalance/compare/v1.1.2...v1.1.3
[v1.1.2]: https://github.com/odinsride/olubalance/compare/v1.1.1...v1.1.2
Expand Down
2 changes: 1 addition & 1 deletion app/models/transaction.rb
Expand Up @@ -86,6 +86,6 @@ def update_account_balance_destroy
def rename_file
extension = File.extname(attachment_file_name).downcase
file_description = description.squish.tr(' ', '_')
attachment.instance_write :file_name, "#{id}_#{file_description}_#{trx_date}#{extension}"
attachment.instance_write :file_name, "#{self.id}_#{file_description}_#{trx_date}#{extension}"
end
end

0 comments on commit 2c9d3f5

Please sign in to comment.