Sha256: 0acf12808ff59f29f1f4e2a13508e4ae36bbfbc6df9937569ca12a0a6379f8cc
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
class SetProperties < ActiveRecord::Migration def self.up config_properties.sort.each do |i, j| Radiant::Config[i] = j end end def self.down config_properties.sort.each do |i, j| Radiant::Config[i] = nil end end private def self.config_properties { "geokit.default_units" => "miles", "geokit.default_formula" => "sphere", "geokit.geocoders.proxy_addr" => "nil", "geokit.geocoders.proxy_port" => "nil", "geokit.geocoders.proxy_user" => "nil", "geokit.geocoders.proxy_pass" => "nil", "geokit.geocoders.timeout" => "nil", "geokit.geocoders.yahoo" => 'REPLACE_WITH_YOUR_YAHOO_KEY', "geokit.geocoders.google" => 'ABQIAAAAPQQInONSMwhvAM8XPWFx-RTpPmlDLmOF7EH7MKNUxLkSYMym1hSi_821IMLTFmwgeSMyEREJZhabWQ', "geokit.geocoders.geocoder_us" => false, "geokit.geocoders.geocoder_ca" => false, "geokit.geocoders.provider_order" => "google us", "location.page_size" => 20 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-location-extension-1.2.1 | db/migrate/002_set_properties.rb |