Skip to content

Instantly share code, notes, and snippets.

@tsyber1an
Created October 30, 2013 14:30
Show Gist options
  • Save tsyber1an/7233649 to your computer and use it in GitHub Desktop.
Save tsyber1an/7233649 to your computer and use it in GitHub Desktop.
module ActiveAdmin
module Filters
module FormtasticAddons
def klass
@object.class
end
def polymorphic_foreign_type?(method)
false
end
end
end
end
@sushil10018
Copy link

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

@chenkirk
Copy link

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