End with newline created config/initializers/paper_trail.rb (#1009)

* End with newline created config/initializers/paper_trail.rb

Currently, config/initializers/paper_trail.rb file created by
    rails generate paper_trail:install
does not end with newline.
Such text files may result in trouble because in unix text files
generally should end with newline.

So, make it put newline at the end.

* Update CHANGELOG.md

* Remove None
This commit is contained in:
Yuki Inoue 2017-11-17 01:56:36 +09:00 committed by Jared Beck
parent bc0effdfd4
commit 8c26c0e3fc
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,8 @@ In PT 8, the following are deprecated, and will be removed in 9:
### Fixed
- None
- [#1009](https://github.com/airblade/paper_trail/pull/1009)
End generated `config/initializers/paper_trail.rb` with newline.
## 8.0.1 (2017-10-25)

View File

@ -43,7 +43,7 @@ module PaperTrail
def create_initializer
create_file(
"config/initializers/paper_trail.rb",
"PaperTrail.config.track_associations = #{!!options.with_associations?}"
"PaperTrail.config.track_associations = #{!!options.with_associations?}\n"
)
end