Sha256: 3999efe6e467d5b090a91cff2ebc15d62d8c3aef61a9fdd01ce623bb104d6e9c

Contents?: true

Size: 419 Bytes

Versions: 25

Compression:

Stored size: 419 Bytes

Contents

module PaperTrail
  module Rails
    # See http://guides.rubyonrails.org/engines.html
    class Engine < ::Rails::Engine
      paths["app/models"] << "lib/paper_trail/frameworks/active_record/models"
      config.paper_trail = ActiveSupport::OrderedOptions.new
      initializer "paper_trail.initialisation" do |app|
        PaperTrail.enabled = app.config.paper_trail.fetch(:enabled, true)
      end
    end
  end
end

Version data entries

25 entries across 24 versions & 2 rubygems

Version Path
paper_trail-8.1.2 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-8.1.1 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-8.1.0 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-8.0.1 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-8.0.0 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.1.3 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.1.2 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.1.1 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.1.0 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.0.3 lib/paper_trail/frameworks/rails/engine.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-5.2.3/lib/paper_trail/frameworks/rails/engine.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-7.0.2/lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.0.2 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.0.1 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-7.0.0 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-6.0.2 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-6.0.1 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-6.0.0 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-5.2.3 lib/paper_trail/frameworks/rails/engine.rb
paper_trail-5.2.2 lib/paper_trail/frameworks/rails/engine.rb