krhorst / active_admin_importable

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

Support 'if' option #27

Closed kiliancs closed 8 years ago

kiliancs commented 8 years ago

By passing an :if option, the import button can be made optional.

Example usage:

active_admin_importable :if => proc { Pundit.policy(current_user, Document).create? }