Sha256: bdbc70b9ae84081b233cde7ca4e76665a61dd748929373ce9ef5aa0a92f810c2

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 Bytes

Contents

require "rhino/engine"
require "codalio_ai/version"
module CodalioAi
  class Engine < ::Rails::Engine
    config.autoload_paths << File.expand_path("../../lib", __dir__)

    initializer "codalio_ai.register_module" do
      config.after_initialize do
        Rhino.registered_modules[:codalio_ai] = {
          version: CodalioAi::VERSION::STRING
        }

        Rhino.resources += ["CodalioAi::DevAi"] if Rails.env.development?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codalio_ai-0.0.2.beta.2 lib/codalio_ai/engine.rb
codalio_ai-0.0.2.beta.1 lib/codalio_ai/engine.rb