Skip to content

Commit

Permalink
Merge pull request #23 from veracross/fix-inconsistent-line-endings
Browse files Browse the repository at this point in the history
Fix inconsistent line endings
  • Loading branch information
aharpervc authored Jun 27, 2019
2 parents 40812ce + c93c326 commit 9a966c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ production:
Then reference secrets in your app with `Rails.application.secrets`.

```ruby
# config/intiializers/rollbar.rb
# config/initializers/rollbar.rb
Rollbar.configure do |config|
config.access_token = Rails.application.secrets.rollbar_token
end
Expand Down
2 changes: 1 addition & 1 deletion lib/consult/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def render(save: true)
renderer = ERB.new(contents, nil, '-')
result = renderer.result(binding)

File.open(dest, 'w') { |f| f << result } if save
File.open(dest, 'wb') { |f| f << result } if save
puts "Consult: Rendered #{name}" if verbose?
result
rescue StandardError => e
Expand Down

0 comments on commit 9a966c9

Please sign in to comment.