spree/spree — Issue #1241: Extension Installed Helper
Author: iloveitaly
Created: 2012-03-07 12:13:32+00:00
State: open

Determining if an extension is installed is a fairly common task, I feel as though it would helpful to have a simple helper built in to spree to enable devs to easily check if an extension is installed (to conditionally enable features in extensions).

def spree_extension_installed(ext)
Rails::Engine.descendants.map(&:engine_name).include? ext
end