Sha256: 1b3d5f1228264b59c76ef6063578abaacff14bc5515f950282975fd15de13ef8
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
require 'rails/engine' module ActiveAdmin module Audit class Engine < Rails::Engine isolate_namespace ActiveAdmin::Audit initializer 'load_config_initializers' do |app| PaperTrail.serializer = PaperTrail::Serializers::JSON app_path = File.expand_path('../../../../app/admin', __FILE__) ActiveAdmin.application.load_paths.unshift(app_path) module ActiveAdmin::ViewHelpers include ActiveAdmin::VersionsHelper end end initializer 'active_record.set_configs' do ActiveSupport.on_load(:active_record) do include ActiveAdmin::Audit::HasVersions end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-audit-0.1.0 | lib/active_admin/audit/engine.rb |