Sha256: 858143de0e505f32fa374ef2fee22a5b23bce97c7e77548efde2c029bed0dcba
Contents?: true
Size: 1.42 KB
Versions: 4
Compression:
Stored size: 1.42 KB
Contents
require "coffee-rails" require "sass-rails" require "jquery-rails" require 'haml' require 'bcrypt' require 'dynamic_form' require 'kaminari' require 'ransack' require "globalize" require 'nifty/utils' require 'nifty/key_value_store' require 'nifty/attachments' require 'nifty/dialog' module KktShoppe class << self # The path to the root of the KktShoppe applicatinio # # @return [String] def root File.expand_path('../../', __FILE__) end # KktShoppe settings as configured in the database # # @return [KktShoppe::Settings] def settings Thread.current[:kkt_shoppe_settings] ||= KktShoppe::Settings.new(KktShoppe::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[:kkt_shoppe_settings] = nil end # Defines a new set of settings which should be configrable from the settings page # in the KktShoppe 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 "kkt_shoppe/engine"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kkt_shoppe-1.2.1 | lib/kkt_shoppe.rb |
kkt_shoppe-1.2.0 | lib/kkt_shoppe.rb |
kkt_shoppe-1.1.1 | lib/kkt_shoppe.rb |
kkt_shoppe-1.1.0 | lib/kkt_shoppe.rb |