lib/active_admin/axlsx.rb in activeadmin-axlsx-2.0.0 vs lib/active_admin/axlsx.rb in activeadmin-axlsx-2.0.1

- old
+ new

@@ -4,10 +4,10 @@ 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.after_initialize do + 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