From bf63c12d2fa5564d2e12cee82034955469ca2ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoit=20B=C3=A9n=C3=A9zech?= Date: Tue, 2 Oct 2012 10:57:34 +0200 Subject: [PATCH] money-rails compatibility (this needs refactoring @mshibuya what do you think we should do to solve this pattern?) --- lib/rails_admin/adapters/mongoid.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rails_admin/adapters/mongoid.rb b/lib/rails_admin/adapters/mongoid.rb index 0168ea9377..88434e05bd 100644 --- a/lib/rails_admin/adapters/mongoid.rb +++ b/lib/rails_admin/adapters/mongoid.rb @@ -251,6 +251,7 @@ def type_lookup(name, field) "DateTime" => { :type => :datetime }, "Float" => { :type => :float }, "Hash" => { :type => :serialized }, + "Money" => { :type => :serialized }, "Integer" => { :type => :integer }, "Object" => ( if associations.find{|a| a[:type] == :belongs_to && a[:foreign_key] == name.to_sym}