lib/phony_rails.rb in phony_rails-0.14.1 vs lib/phony_rails.rb in phony_rails-0.14.2
- old
+ new
@@ -199,9 +199,11 @@
end
# 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)
+
if defined?(Mongoid)
module Mongoid::Phony
extend ActiveSupport::Concern
include PhonyRails::Extension
end