Skip to content

Commit

Permalink
Merge 3c1b9cb into 62564d9
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanheerde committed Feb 8, 2017
2 parents 62564d9 + 3c1b9cb commit 6483836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phony_rails.rb
Expand Up @@ -199,7 +199,7 @@ def phony_normalized_method(*attributes)
# check whether it is ActiveRecord or Mongoid being used
ActiveRecord::Base.send :include, PhonyRails::Extension if defined?(ActiveRecord)

ActiveModel::Model.send :include, PhonyRails::Extension if defined?(ActiveModel)
ActiveModel::Model.send :include, PhonyRails::Extension if defined?(ActiveModel::Model)

if defined?(Mongoid)
module Mongoid::Phony
Expand Down

0 comments on commit 6483836

Please sign in to comment.