cartodb/config/initializers/repository.rb

7 lines
426 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
require_relative '../../services/data-repository/backend/sequel'
require_relative '../../app/models/visualization/collection'
require_relative '../../app/models/synchronization/collection'
CartoDB::Visualization.repository ||= DataRepository::Backend::Sequel.new(SequelRails.connection, :visualizations)
CartoDB::Synchronization.repository ||= DataRepository::Backend::Sequel.new(SequelRails.connection, :synchronizations)