Initial commit

This commit is contained in:
Eugen Rochko
2016-02-20 22:53:20 +01:00
commit 9c4856bdb1
73 changed files with 1393 additions and 0 deletions
View File
+7
View File
@@ -0,0 +1,7 @@
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
View File
+3
View File
@@ -0,0 +1,3 @@
class Status < ActiveRecord::Base
belongs_to :account, inverse_of: :statuses
end