Sha256: 32f46ca337a41780e15171d2f6b051989e84243a3776cbabaf8d705244aea323
Contents?: true
Size: 980 Bytes
Versions: 1
Compression:
Stored size: 980 Bytes
Contents
require 'active_admin' require 'active_admin/axlsx/build_download_format_links' require 'active_admin/axlsx/version' require 'active_admin/axlsx/builder' require 'active_admin/axlsx/dsl' require 'active_admin/axlsx/resource_extension' require 'active_admin/axlsx/resource_controller_extension' class Railtie < ::Rails::Railtie config.before_initialize do begin if Mime::Type.lookup_by_extension(:xlsx).nil? # The mime type to be used in respond_to |format| style web-services in rails Mime::Type.register "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", :xlsx end rescue NameError # noop end ActiveAdmin::ResourceDSL.send :include, ActiveAdmin::Axlsx::DSL ActiveAdmin::Resource.send :include, ActiveAdmin::Axlsx::ResourceExtension ActiveAdmin::ResourceController.send :include, ActiveAdmin::Axlsx::ResourceControllerExtension ActiveAdmin::Views::PaginatedCollection.add_format :xlsx end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-axlsx-2.1.1 | lib/active_admin/axlsx.rb |