Sha256: a3d41b2a7d4fd0c1a61c6d846b01a2ee7b9d1b211ca84a9f260f8d5d442e705a
Contents?: true
Size: 386 Bytes
Versions: 12
Compression:
Stored size: 386 Bytes
Contents
# frozen_string_literal: true module Spree module Admin module BaseControllerDecorator protected def model_class const_name = controller_name.classify if Spree.const_defined?(const_name, false) return "Spree::#{const_name}".constantize end nil end ::Spree::Admin::BaseController.prepend self end end end
Version data entries
12 entries across 12 versions & 1 rubygems