mirror of
https://github.com/we-promise/sure.git
synced 2026-06-06 19:29:03 +00:00
* First pass of Akahu * fix up sync all * conflicts * fix db migration issue? - fix auto selection of akahu account type * Address Akahu PR feedback * Complete provider metadata * Fix PR 1921 CI tests * PR feedback * PR feedback * post merge --------- Co-authored-by: failing <failing@users.noreply.github.com> Co-authored-by: Juan José Mata <jjmata@jjmata.com> Co-authored-by: sure-admin <sure-admin@splashblot.com>
17 lines
278 B
Ruby
17 lines
278 B
Ruby
module AkahuItem::Provided
|
|
extend ActiveSupport::Concern
|
|
|
|
def akahu_provider
|
|
return nil unless credentials_configured?
|
|
|
|
Provider::Akahu.new(
|
|
app_token: app_token,
|
|
user_token: user_token
|
|
)
|
|
end
|
|
|
|
def syncer
|
|
AkahuItem::Syncer.new(self)
|
|
end
|
|
end
|