krhorst / active_admin_importable

CSV imports for Active Admin resources
MIT License
53 stars 55 forks source link

Gem is confused by the :as keyword #12

Closed charredUtensil closed 11 years ago

charredUtensil commented 11 years ago
ActiveAdmin.register AdminUser, :as => "User" do 
  active_admin_importable
  ...
end

The csv upload will attempt to use the User model (which does not exist) instead of the AdminUser model.

krhorst commented 11 years ago

This is now fixed. Now uses the resource_class method which handles :as correctly.