Sha256: 2effe8f7b4d34b1c6dc8f8c4c93210b7c05f05fffe2aa7e20ec43efe5bfb8c6f
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
require "solidus_support/version" require "solidus_support/migration" require "solidus_core" module SolidusSupport class << self def solidus_gem_version if Spree.respond_to?(:solidus_gem_version) Spree.solidus_gem_version elsif Spree.respond_to?(:gem_version) # 1.1 doesn't have solidus_gem_version Gem::Version.new(Spree.solidus_version) else # 1.0 doesn't have gem_version Gem::Specification.detect{|x| x.name == "solidus_core" }.version end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_support-0.1.1 | lib/solidus_support.rb |