Sha256: 37cde9711f43c8ce8b28061063c0f74663bc7cbea53fcfa69ee2288885dce7a5

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

module Forem
  class Engine < ::Rails::Engine
    isolate_namespace Forem

    config.generators.integration_tool :rspec
    config.generators.test_framework :rspec

    class << self
      attr_accessor :user_class
    end

    def self.user_class
      error = "Please define Forem::Engine.user_class" +
              " in config/initializers/forem.rb"

      @user_class || raise(ConfigurationNotSet, error)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prusswan-forem-0.0.2 lib/forem/engine.rb