Sha256: 9ea6a4a67f43585b2c42c86a628ef7230dca915e41244c12b509b621043a1b75
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
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 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 initializer "bullet_train.super_scaffolding.register" do |app| BulletTrain.linked_gems << "bullet_train-super_scaffolding" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bullet_train-super_scaffolding-1.0.12 | lib/bullet_train/super_scaffolding/engine.rb |
bullet_train-super_scaffolding-1.0.11 | lib/bullet_train/super_scaffolding/engine.rb |