Sha256: 0354dea13a3f0acf4245e09842e5136069a8c5a380fa19dc7c832fa173bdef65
Contents?: true
Size: 579 Bytes
Versions: 6
Compression:
Stored size: 579 Bytes
Contents
module Swaggard class Engine < ::Rails::Engine isolate_namespace Swaggard initializer 'swaggard.finisher_hook', :after => :finisher_hook do |app| app.reload_routes! Swaggard.configure do |config| unless config.controllers_path config.controllers_path = "#{app.root}/app/controllers/**/*.rb" end unless config.models_paths config.models_paths = ["#{app.root}/app/serializers/**/*.rb"] end config.routes = app.routes.routes end Swaggard.register_custom_yard_tags! end end end
Version data entries
6 entries across 6 versions & 1 rubygems