activitypub-academy/app/models/account.rb

8 lines
275 B
Ruby
Raw Normal View History

2016-02-21 06:53:20 +09:00
class Account < ActiveRecord::Base
has_many :statuses, inverse_of: :account
def subscription(webhook_url)
@subscription ||= OStatus2::Subscription.new(self.remote_url, secret: self.secret, token: self.verify_token, webhook: webhook_url, hub: self.hub_url)
end
end