lib/shoppe.rb in shoppe-1.1.1 vs lib/shoppe.rb in shoppe-1.1.2

- old
+ new

@@ -13,48 +13,48 @@ require 'nifty/dialog' require 'carrierwave' module Shoppe class << self - - # The path to the root of the Shoppe applicatinio + + # The path to the root of the Shoppe application # # @return [String] def root File.expand_path('../../', __FILE__) end - + # Shoppe settings as configured in the database # # @return [Shoppe::Settings] def settings Thread.current[:shoppe_settings] ||= Shoppe::Settings.new(Shoppe::Setting.to_hash) end - + # Clears the settings from the thread cache so they will be taken # from the database on next access - # + # # @return [NilClass] def reset_settings Thread.current[:shoppe_settings] = nil end - - # Defines a new set of settings which should be configrable from the settings page + + # Defines a new set of settings which should be configrable from the settings page # in the Shoppe UI. def add_settings_group(group, fields = []) settings_groups[group] ||= [] settings_groups[group] = settings_groups[group] | fields end - + # All settings groups which are available for configuration on the settings page. # # @return [Hash] def settings_groups @settings_groups ||= {} end - + end - + end # Start your engines. require "shoppe/engine"