Sha256: 4a58135d322aae586b90a4c1ee069699df4d8251d755251b79abb7f342d7cc7a
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
require 'yaml' begin configuration = YAML.load_file("#{Rails.root}/config/headstart.yml")[Rails.env] configuration = HashWithIndifferentAccess.new(configuration) Headstart.configure do |config| config.mailer_sender = configuration[:mailer_sender] config.impersonation_hash = configuration[:impersonation_hash] config.use_facebook_connect = configuration[:use_facebook_connect] config.use_delayed_job = configuration[:use_delayed_job] config.facebook_api_key = configuration[:facebook_api_key] config.facebook_secret_key = configuration[:facebook_secret_key] config.facebook_app_id = configuration[:facebook_app_id] config.url_after_create = configuration[:url_after_create] config.session_failure_template = configuration[:session_failure_template] end if configuration[:madmimi_username].present? && configuration[:madmimi_api_key].present? MadMimiMailer.api_settings = { :username => configuration[:madmimi_username], :api_key => configuration[:madmimi_api_key] } else end rescue LoadError puts "The /config/headstart.yml file is missing or broken." end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headstart-0.11.2 | generators/headstart/templates/headstart.rb |
headstart-0.11.1 | generators/headstart/templates/headstart.rb |