Sha256: 66acf1b4d5fa9bd656692fc0ae52af92e465e62d97af68ecd5579890e8fb8376

Contents?: true

Size: 541 Bytes

Versions: 5

Compression:

Stored size: 541 Bytes

Contents

module LesliAudit
    class Engine < ::Rails::Engine
        isolate_namespace LesliAudit

        initializer :lesli_admin do |app|

            # register assets manifest
            config.assets.precompile += %w[lesli_audit_manifest.js]

            # register engine migrations path
            unless app.root.to_s.match root.to_s
                config.paths["db/migrate"].expanded.each do |expanded_path|
                    app.config.paths["db/migrate"] << expanded_path
                end
            end
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lesli_audit-0.5.0 lib/lesli_audit/engine.rb
lesli_audit-0.4.0 lib/lesli_audit/engine.rb
lesli_audit-0.3.0 lib/lesli_audit/engine.rb
lesli_audit-0.2.0 lib/lesli_audit/engine.rb
lesli_audit-0.1.0 lib/lesli_audit/engine.rb