Sha256: 1c70ee695f3f2de7e87e37a4bb1c91577ed0e9091bb93cb5d8087f60b7e5a76e

Contents?: true

Size: 409 Bytes

Versions: 44

Compression:

Stored size: 409 Bytes

Contents

class Appsetting < ActiveRecord::Base
  # FIXME: This should be done automatically
  include Six::Appmanager::Appsetting

  has_many :sixconfigs
  six_guid

  def to_updater_yml
    hash = Hash.new
    attribute_names.each do |at|
      i = at.to_s
      i = "app_#{i}"
      value = eval(at)
      hash[i.to_sym] = value unless value.nil? || value.to_s.size == 0
    end
    hash
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
six-updater-web-0.18.2 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.18.1 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.18.0 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.7 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.6 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.5 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.4 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.3 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.2 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.1 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.17.0 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.16.3 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.16.2 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.16.0 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.15.4 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.15.3 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.15.2 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.15.1 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.14.12 lib/six-updater-web/app/models/appsetting.rb
six-updater-web-0.14.10 lib/six-updater-web/app/models/appsetting.rb