Files
sure/app/models/mercury_item/provided.rb
soky srm 179552657c Mercury integration (#723)
* Initial mercury impl

* FIX both mercury and generator class

* Finish mercury integration and provider generator

* Fix schema

* Fix linter and tags

* Update routes.rb

* Avoid schema drift

---------

Signed-off-by: soky srm <sokysrm@gmail.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2026-01-22 20:37:07 +01:00

14 lines
259 B
Ruby

module MercuryItem::Provided
extend ActiveSupport::Concern
def mercury_provider
return nil unless credentials_configured?
Provider::Mercury.new(token, base_url: effective_base_url)
end
def syncer
MercuryItem::Syncer.new(self)
end
end