Sha256: dfc24974df0fdfda31f1df5eef35b1df6d50bae2d78eff13786ac53afd9e3d06
Contents?: true
Size: 804 Bytes
Versions: 3
Compression:
Stored size: 804 Bytes
Contents
require 'hocus_pocus/recorder/engine' require 'hocus_pocus/recorder/filter' module HocusPocus module Recorder SPEC = :__hocus_pocus_recorder__ class Railtie < ::Rails::Railtie #:nodoc: initializer 'hocus_pocus.recorder' do |app| ActiveSupport.on_load(:after_initialize) do if HocusPocus.config.enable_scenario_recorder Rails.application.routes.append do mount HocusPocus::Recorder::Engine, :at => '/hocus_pocus/recorder' end end end ActiveSupport.on_load(:action_controller) do if HocusPocus.config.enable_scenario_recorder class ::ActionController::Base before_filter HocusPocus::Recorder::Filter end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems