Sha256: 5ce2ac540c64cc8a23c2667acdbbea874adaa91cb8347cb06112072cc8533f06
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
module GTFS class Realtime class Configuration attr_accessor :static_feed, :trip_updates_feed, :vehicle_positions_feed, :service_alerts_feed, :database_url def database_url=(new_path) @database_url = new_path if @database_url ActiveRecord::Base.establish_connection(@database_url) else ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gtfs-realtime-0.4.0 | lib/gtfs/realtime/configuration.rb |