Module: OptimacmsBackups

Defined in:
lib/optimacms_backups.rb,
lib/optimacms_backups/engine.rb,
lib/optimacms_backups/version.rb,
app/helpers/optimacms_options/filter_helper.rb,
app/helpers/optimacms_options/application_helper.rb

Defined Under Namespace

Modules: ApplicationHelper, FilterHelper Classes: Engine

Constant Summary collapse

VERSION =
"0.0.14"
@@backups_config =

mattr_accessor :backups_config

nil

Class Method Summary collapse

Class Method Details

.backups_configObject



8
9
10
11
12
13
14
15
# File 'lib/optimacms_backups.rb', line 8

def self.backups_config
  return @@backups_config unless (@@backups_config.nil?)

  @@backups_config = YAML.load_file(File.join(Rails.root, 'config/backup', "#{Rails.env}.yml"))


  @@backups_config
end