cartodb/config/initializers/repository.rb
2020-06-15 10:58:47 +08:00

7 lines
426 B
Ruby

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)