module Disclosure
  class Engine < ::Rails::Engine
    isolate_namespace Disclosure
  end
end

module Disclosure
  class Engine < ::Rails::Engine
    isolate_namespace Disclosure

    initializer 'disclosure.subscribe_to_model_events' do
      ActiveSupport::Notifications.subscribe "disclosure.model_saved" do |name, start, finish, id, payload|
        Disclosure.react_to!(payload[:model])
      end
    end

    initializer 'disclosure.extend_model_classes' do
      Disclosure.bootstrap!
    end
  end
end

Add initializers: 1. Subscribe to notifications issued by models after saving 2. Bootstrap required methods into models for implementation by the user
Add initializers:
1. Subscribe to notifications issued by models after saving
2. Bootstrap required methods into models for implementation by the user
