Sha256: 958f9cc29bb14b0d0f7650c0583534e7c17ab4aa12abbeaab15223eacfea36a4

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

module Approval
  class Engine < ::Rails::Engine
    paths["app/models"] << "lib/approval/models"

    initializer "approval" do
      ActiveSupport.on_load :active_record do
        require "approval/mixins"
        ActiveRecord::Base.include ::Approval::Mixins
      end
    end

    config.to_prepare do
      Approval.init!
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
approval-0.3.5 lib/approval/engine.rb
approval-0.3.4 lib/approval/engine.rb
approval-0.3.3 lib/approval/engine.rb
approval-0.3.2 lib/approval/engine.rb