cartodb/config/initializers/repository.rb

8 lines
444 B
Ruby
Raw Normal View History

2021-01-24 16:18:54 +08:00
# encoding: utf-8
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)