Skip to content

Commit 7575606

Browse files
committed
Finish switching to Railsties
1 parent 96b2879 commit 7575606

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

CHANGELOG.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Changelog
22

3-
* `Unreleased`
4-
- Nothing yet
3+
* `Unreleased` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.4.0...master)
4+
- [ef08001](https://github.com/cortiz/prawn-rails/commit/ef08001) - Fix bug in v1.4.0, where PDF's wouldnt open as `inline` within the browser. Problem was due to incomplete switch to Railsties from [PR #41](https://github.com/cortiz/prawn-rails/pull/41)
55

6-
* `v1.4.0`
6+
* `v1.4.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.3.0...v1.4.0)
77
- [PR #41](https://github.com/cortiz/prawn-rails/pull/41) - Depend on `railsties` instead of `rails` gem to avoid pulling in unnecessary dependencies such as action_cable, etc.
88

9-
* `v1.3.0`
9+
* `v1.3.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.2.1...v1.3.0)
1010
- [PR #40](https://github.com/cortiz/prawn-rails/pull/40) - Add `:filename` and `:disposition` options for `prawn_document
1111
- [PR #40](https://github.com/cortiz/prawn-rails/pull/40) - Do not override existing`Content-Disposition` headers
1212

13-
* `v1.2.1`
13+
* `v1.2.1` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.2.0...v1.2.1)
1414
- [PR #39](https://github.com/cortiz/prawn-rails/pull/39) - Fix Rails 6 deprecation warning for single arity template handlers
1515
- Remove unnecessary option logic from `prawn_document` method
1616

17-
* `v1.2.0`
17+
* `v1.2.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.1.0...v1.2.0)
1818
- [PR #31](https://github.com/cortiz/prawn-rails/pull/31) - Use Prawn::Document.extensions in favor of custom plug-in loading. This removes all changes made in PR #29 and should behave much more appropriately now.
1919
- [Undo PR #29](https://github.com/cortiz/prawn-rails/pull/31) - Use Prawn::Document.extensions in favor of custom plug-in loading
2020
- [PR #30](https://github.com/cortiz/prawn-rails/pull/30) - Allow rendering in ActionMailer
2121

22-
* `v1.1.0`
22+
* `v1.1.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.2...v1.1.0)
2323
- [PR #29](https://github.com/cortiz/prawn-rails/pull/29) - Require all installed prawn extensions
2424
- Removed unnecessary `html_strip` helper method. If you were using this feature, instead use Rails built in `strip_tags(html_str)` or `ActionView::Base.full_sanitizer.sanitize(html_str)`
2525
- Add legitimate tests
2626

27-
* `v1.0.1`
27+
* `v1.0.1` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.0...v1.0.1)
2828
- Fix error when using `ActionController.render_to_string`
2929

30-
* `v1.0.0`
30+
* `v1.0.0` - [View Diff](https://github.com/cortiz/prawn-rails/compare/v1.0.0...v0.1.1)
3131
- Support `@filename`
3232
- Set PDF Title metadata based on `@filename` if not specified
3333
- Fix for Ruby 1.9.3+

lib/prawn-rails.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require "prawn-rails/config"
2-
require "prawn-rails/engine"
31
require "prawn-rails/version"
2+
require "prawn-rails/config"
3+
require "prawn-rails/railtie"
44

55
module PrawnRails
66
end

lib/prawn-rails/engine.rb renamed to lib/prawn-rails/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require "prawn-rails/renderer"
44

55
module PrawnRails
6-
class Engine < Rails::Engine
6+
class Railtie < Rails::Railtie
77
ActionView::Base.send(:include, PrawnRails::RailsHelper)
88
ActionView::Template.register_template_handler(:prawn, PrawnRails::Renderer)
99

0 commit comments

Comments
 (0)