diff --git a/README.md b/README.md index 1178899..b88c5d3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/gridhook.rb b/lib/gridhook.rb index f706399..22bb0a9 100644 --- a/lib/gridhook.rb +++ b/lib/gridhook.rb @@ -1,5 +1,4 @@ require 'rails/engine' -require 'multi_json' require 'action_view' require 'action_dispatch' diff --git a/lib/gridhook/engine.rb b/lib/gridhook/engine.rb index 5332afe..aee34b6 100644 --- a/lib/gridhook/engine.rb +++ b/lib/gridhook/engine.rb @@ -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 \ No newline at end of file diff --git a/lib/gridhook/version.rb b/lib/gridhook/version.rb index 264b146..f72a134 100644 --- a/lib/gridhook/version.rb +++ b/lib/gridhook/version.rb @@ -1,3 +1,3 @@ module Gridhook - VERSION = '0.2.1' + VERSION = '0.2.3' end