Sha256: 0c1b54141e321a78e1df0bc0b5ba05e7476346a8266171f64dbf7e1bc4b71a74
Contents?: true
Size: 459 Bytes
Versions: 31
Compression:
Stored size: 459 Bytes
Contents
module Spree module Sample def self.load_sample(file) path = File.expand_path(samples_path + "#{file}.rb") # Check to see if the specified file has been loaded before if !$LOADED_FEATURES.include?(path) require path puts "Loaded #{file.titleize} samples" end end private def self.samples_path Pathname.new(File.join(File.dirname(__FILE__), '..', '..', 'db', 'samples')) end end end
Version data entries
31 entries across 31 versions & 1 rubygems