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:
parent
bc0effdfd4
commit
8c26c0e3fc
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue