Sha256: 27fa2002822fc23ade342d094dfc3300ccd20ac951521e6bf88020a61e5146a3

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

module BulletTrain
  module SuperScaffolding
    class Engine < ::Rails::Engine
      initializer "bullet_train.super_scaffolding.register_template_path" do |app|
        # Templates from the application itself should always be highest priority.
        # This allows application developers to locally overload any template from any package.
        BulletTrain::SuperScaffolding.template_paths << Rails.root.to_s

        # Register the base path of this package with the Super Scaffolding engine.
        BulletTrain::SuperScaffolding.template_paths << File.expand_path("../../../..", __FILE__)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-1.0.9 lib/bullet_train/super_scaffolding/engine.rb
bullet_train-super_scaffolding-1.0.8 lib/bullet_train/super_scaffolding/engine.rb