Sha256: 7bcf36fa5dfbbe65a9835b13d7b1e8d09a5280718ae1f747b2be4e85d3bf4ad6
Contents?: true
Size: 985 Bytes
Versions: 1
Compression:
Stored size: 985 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 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bullet_train-super_scaffolding-1.0.10 | lib/bullet_train/super_scaffolding/engine.rb |