Refactoring Grape API methods into normal controllers & other things

This commit is contained in:
Eugen Rochko 2016-02-29 19:42:08 +01:00
parent 11ff92c9d7
commit 0e8f59c16f
63 changed files with 336 additions and 406 deletions

View file

@ -38,7 +38,7 @@ class FollowRemoteAccountService < BaseService
account.secret = SecureRandom.hex
account.verify_token = SecureRandom.hex
subscription = account.subscription(subscription_url(account))
subscription = account.subscription(api_subscription_url(account.id))
subscription.subscribe
account.save!