Created
July 31, 2015 14:18
-
-
Save yoonwaiyan/75caf90aa5c355eb3484 to your computer and use it in GitHub Desktop.
Blank slate monkey patch
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
require 'active_admin/helpers/collection' | |
module ActiveAdmin | |
module Views | |
module Pages | |
class Index < Base | |
protected | |
def render_blank_slate | |
blank_slate_content = I18n.t("active_admin.blank_slate.content", resource_name: active_admin_config.plural_resource_label) | |
insert_tag(view_factory.blank_slate, blank_slate_content) | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment