cartodb/app/models/carto/helpers/has_connector_configuration.rb

9 lines
230 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
module Carto
module HasConnectorConfiguration
def connector_configuration(provider_name)
provider = ConnectorProvider.find_by_name(provider_name)
ConnectorConfiguration.for_user(self, provider)
end
end
end