Sha256: 09e9e96e3e52fb31929b3c85dd659abf055c974fb8ebe4bf9910cfb62cce8c89
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
require "rails/engine" module EasyML class Engine < Rails::Engine isolate_namespace EasyML initializer "easy_ml.inflections" do require_relative "initializers/inflections" end initializer "easy_ml.setup_generators" do |app| app.config.generators do |g| g.templates.unshift File.expand_path("../templates", __dir__) end end generators_path = File.expand_path("railtie/generators", __dir__) generators_dirs = Dir[File.join(generators_path, "**", "*.rb")] generators_dirs.each { |file| require file } config.after_initialize do require_relative "../../app/models/easy_ml/model" require_relative "../../app/models/easy_ml/models" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
easy_ml-0.1.4 | lib/easy_ml/engine.rb |
easy_ml-0.1.3 | lib/easy_ml/engine.rb |
easy_ml-0.1.2 | lib/easy_ml/engine.rb |
easy_ml-0.1.1 | lib/easy_ml/engine.rb |