Skip to content

Commit

Permalink
Hack mongoid.
Browse files Browse the repository at this point in the history
  • Loading branch information
james2m committed Oct 2, 2019
1 parent bd420e2 commit 4f30701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/canard/adapters/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ def define_scopes_for_role(role, prefix = nil)
end
end

Mongoid::Document::ClassMethods.include Canard::Adapters::Mongoid
Mongoid::Document::ClassMethods.include Canard::UserModel
Mongoid::Document::ClassMethods.send(:include, Canard::Adapters::Mongoid)
Mongoid::Document::ClassMethods.send(:include, Canard::UserModel)
Canard.find_abilities

0 comments on commit 4f30701

Please sign in to comment.