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