Skip to content

Add decorators as engine dependency #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ end
```

## Changelog
v0.2.3 Removed 'multi_json' dependency

v0.2.2 Require decorators as dependency

v0.2.1 Use built-in rails JSON parser.

v0.2.0 Supports version 3 of the Sendgrid webhook released on
Expand Down
1 change: 0 additions & 1 deletion lib/gridhook.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'rails/engine'
require 'multi_json'
require 'action_view'
require 'action_dispatch'

Expand Down
5 changes: 5 additions & 0 deletions lib/gridhook/engine.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
module Gridhook
class Engine < ::Rails::Engine
config.to_prepare do
Dir.glob(Rails.root + "app/decorators/gridhook/*_decorator*.rb").each do |c|
require_dependency(c)
end
end
end
end
2 changes: 1 addition & 1 deletion lib/gridhook/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Gridhook
VERSION = '0.2.1'
VERSION = '0.2.3'
end