Sha256: bca81da4fbb10d6fa964fc51ad8bb6c6b976b7d8c0c2e888930acd9ce3b40965

Contents?: true

Size: 769 Bytes

Versions: 5

Compression:

Stored size: 769 Bytes

Contents

puts "default config"
BillboardApi::Config.configure do |config|
  
  # if running from rails, then set values depending on environment
  if defined? RAILS_ENV
    if RAILS_ENV == 'test'
      config.paypal_service_url = "https://www.sandbox.paypal.com/cgi-bin/webscr?"
    elsif RAILS_ENV == 'development'
      config.paypal_service_url = "https://www.sandbox.paypal.com/cgi-bin/webscr?"
    elsif RAILS_ENV == 'staging'
      config.paypal_service_url = "https://www.sandbox.paypal.com/cgi-bin/webscr?"
    elsif RAILS_ENV == 'production'
      config.paypal_service_url = "https://www.paypal.com/cgi-bin/webscr?"
    end
  else 
    puts "Not in rails, no defaults set"
  end
  # default values
  config.site_url = 'http://billboard.garden.u2.simplificator.com'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simplificator-billboard-api-0.6.1 lib/billboard-api/default_config.rb
simplificator-billboard-api-0.6.2 lib/billboard-api/default_config.rb
simplificator-billboard-api-0.7.0 lib/billboard-api/default_config.rb
simplificator-billboard-api-0.7.2 lib/billboard-api/default_config.rb
simplificator-billboard-api-0.7.1 lib/billboard-api/default_config.rb