Sha256: b66680ed55d9fbbac51cd4b32ea59d11f9274046da58d20aade5314e5c7e940a
Contents?: true
Size: 401 Bytes
Versions: 11
Compression:
Stored size: 401 Bytes
Contents
require 'lurker/server' module Lurker class Engine < ::Rails::Engine config.after_initialize do |app| app.routes.append do unless ::Rails.env.production? || app.routes.routes.map(&:app).any? { |e| e.is_a?(Class) && e.name.to_s.match(/Lurker::Rack/) } mount Lurker::Server.to_rack(path: 'html'), at: "/#{Lurker::DEFAULT_URL_BASE}" end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems