cartodb-4.42/config/initializers/repository.rb

7 lines
426 B
Ruby
Raw Permalink Normal View History

2024-04-06 13:25:13 +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)