Sha256: fae8403ab8d501f8e63f8a1fc7a1ddc75be3d03fad59d237bb25d5db38740ff8

Contents?: true

Size: 339 Bytes

Versions: 10

Compression:

Stored size: 339 Bytes

Contents

require "optimacms_backups/engine"

module OptimacmsBackups

  #mattr_accessor :backups_config
  @@backups_config = nil

  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

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
optimacms_backups-0.0.14 lib/optimacms_backups.rb
optimacms_backups-0.0.13 lib/optimacms_backups.rb
optimacms_backups-0.0.12 lib/optimacms_backups.rb
optimacms_backups-0.0.7 lib/optimacms_backups.rb
optimacms_backups-0.0.6 lib/optimacms_backups.rb
optimacms_backups-0.0.5 lib/optimacms_backups.rb
optimacms_backups-0.0.4 lib/optimacms_backups.rb
optimacms_backups-0.0.3 lib/optimacms_backups.rb
optimacms_backups-0.0.2 lib/optimacms_backups.rb
optimacms_backups-0.0.1 lib/optimacms_backups.rb