Created
October 30, 2013 14:30
-
-
Save tsyber1an/7233649 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveAdmin | |
module Filters | |
module FormtasticAddons | |
def klass | |
@object.class | |
end | |
def polymorphic_foreign_type?(method) | |
false | |
end | |
end | |
end | |
end |
I put this in the config/initializers directory and it worked (as suggested by @bgwilson87)
Funfun's solution worked for me. Inserted fix.rb into the config/initializers directory, and I stopped getting the error. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm getting the same error with rails 4 and active admin for mongoid. Can you please explain how I can use this fix. Thanks