Sha256: 47a6d9e40902130f97e90133dc8b90e813f3dd88c5e72cbe573ccabe68a8a8e0

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

module Workarea
  module LegacyOrders
    class Engine < ::Rails::Engine
      include Workarea::Plugin
      isolate_namespace Workarea::LegacyOrders

      initializer "workarea.legacy_orders" do
        if Workarea::Plugin.installed?("Workarea::Api")
          api_major, * =  Workarea::Api::VERSION.split(".")
          if api_major != "4"
            raise "This version of Workarea Legacy Orders only supports Workarea Api ~> 4.x"
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-legacy_orders-2.0.3 lib/workarea/legacy_orders/engine.rb
workarea-legacy_orders-2.0.2 lib/workarea/legacy_orders/engine.rb
workarea-legacy_orders-2.0.1 lib/workarea/legacy_orders/engine.rb
workarea-legacy_orders-2.0.0 lib/workarea/legacy_orders/engine.rb