Sha256: 2c8bdbf76426a122615e41df2f2df83aa3ea8b129d171806925c0427d4fb1cd2

Contents?: true

Size: 799 Bytes

Versions: 1

Compression:

Stored size: 799 Bytes

Contents

module BulletTrain
  module SuperScaffolding
    module Templates
      class Engine < ::Rails::Engine
        initializer "bullet_train.super_scaffolding.templates.register_template_path" do |app|
          # Register the base path of this package with the Super Scaffolding engine.
          BulletTrain::SuperScaffolding.template_paths << File.expand_path('../../../../..', __FILE__)
        end

        initializer "bullet_train.super_scaffolding.templates.register_api_endpoints" do |app|
          if BulletTrain::Api
            BulletTrain::Api.endpoints << "Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptsEndpoint"
            BulletTrain::Api.endpoints << "Api::V1::Scaffolding::CompletelyConcrete::TangibleThingsEndpoint"
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-templates-1.0.5 lib/bullet_train/super_scaffolding/templates/engine.rb