Sha256: 9c10ef8eb51e02afa640e1420ab994645d7d16be465bdbe04cb60757f5cdf7e1
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
# author: Vadism Shaveiko <@vshaveyko> # frozen_string_literal: true require 'jquery-rails' # needed for require in javascript require_relative 'railtie' # add rabl support begin require 'rabl' require_relative 'controller/response/rabl' require_relative 'controller/response/rabl_compiler' RailsApiDoc::Controller::Response::Rabl.renderer = Rabl::Renderer rescue LoadError end class RailsApiDoc::Engine < ::Rails::Engine isolate_namespace RailsApiDoc initializer 'rails_api_doc.assets.precompile' do |app| app.config.assets.precompile += %w(application.css application.js api_doc.js rails_api_doc/api_doc.js) end end
Version data entries
6 entries across 6 versions & 1 rubygems