Sha256: f67392a6c7f8fe17e28f9a5af1b5c99496cbd8414d1535342a9a7d0204b07f34
Contents?: true
Size: 467 Bytes
Versions: 4
Compression:
Stored size: 467 Bytes
Contents
require 'mount_doc' require 'action_dispatch/routing/route_set' class ActionDispatch::Routing::RouteSet def finalize_with_mount_doc! result = finalize_without_mount_doc! begin self.eval_block(lambda{ mount MountDoc::Engine => MountDoc::Config.auto_mount_path }) if MountDoc::Config.auto_mount? && self.named_routes.get(:mount_doc_rails_engine).nil? true end result end alias_method_chain :finalize!, :mount_doc end
Version data entries
4 entries across 4 versions & 1 rubygems