Sha256: 170d267b6fcaa25e762469d2daa61915887ed88a9104cd3653b815c83873293e

Contents?: true

Size: 612 Bytes

Versions: 4

Compression:

Stored size: 612 Bytes

Contents

require 'thecore_auth_commons'
require 'devise-i18n'
require 'http_accept_language'
require 'rails-i18n'
require 'thecore_settings'

require 'patches/thecore'

require 'roo'
require 'roo-xls'

require "thecore_backend_commons/engine"

module ThecoreBackendCommons
  # Your code goes here...
end

module Thecore
  class Seed
    def self.save_setting ns, setting, value
      puts "Saving setting if nil #{ns}: #{setting} = #{value}"
      if Settings.ns(ns)[setting].blank?
        Settings.ns(ns)[setting] if value.blank?
        Settings.ns(ns)[setting] = value unless value.blank?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thecore_backend_commons-2.4.0 lib/thecore_backend_commons.rb
thecore_backend_commons-2.3.10 lib/thecore_backend_commons.rb
thecore_backend_commons-2.3.9 lib/thecore_backend_commons.rb
thecore_backend_commons-2.3.8 lib/thecore_backend_commons.rb