Sha256: 528bd39fa7eef0a498e3de18dd47d9699e9acaf433ec901136119c278563aa91
Contents?: true
Size: 541 Bytes
Versions: 6
Compression:
Stored size: 541 Bytes
Contents
require "spree_core" require "rdiscount" require "spree_essentials/version" require "spree_essentials/engine" module SpreeEssentials class << self # Stores an essential-aware extension for use later def register(key, extension) essentials[key] = extension end # Looks up an extension name def has?(essential) essentials.keys.include?(essential.to_sym) end # Returns the array of essential-aware extensions def essentials @essentials ||= {} end end end
Version data entries
6 entries across 6 versions & 2 rubygems