Skip to content

Commit

Permalink
Support more orms (#164)
Browse files Browse the repository at this point in the history
* #156 support mongoid
* #158 support dynamoid
  • Loading branch information
aaronmallen committed Feb 4, 2020
1 parent a7db4ef commit 242d169
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/active_interactor/rails/orm/dynamoid.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

require 'dynamoid/document'

Dynamoid::Document::ClassMethods.include ActiveInteractor::Models
5 changes: 5 additions & 0 deletions lib/active_interactor/rails/orm/mongoid.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

ActiveSupport.on_load(:mongoid) do
Mongoid::Document::ClassMethods.include ActiveInteractor::Models
end

0 comments on commit 242d169

Please sign in to comment.