Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4fe610f45e
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.381 kb
class SubConfig
def self.load
config_file = File.join(Rails.root, "config", "subscription.yml")
if File.exists?(config_file)
config = ERB.new(File.read(config_file)).result
config = YAML.load(config)[Rails.env.to_sym]
config.keys.each do |key|
cattr_accessor key
send("#{key}=", config[key])
end
end
end
end
SubConfig.load
Jump to Line
Something went wrong with that request. Please try again.