Class: RepositorySubscriptionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/repository_subscriptions_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject


4
5
6
7
# File 'app/controllers/repository_subscriptions_controller.rb', line 4

def edit
  @repository_subscription = current_user.repository_subscriptions.find(params[:id])
  @github_repository = @repository_subscription.github_repository
end

#updateObject


9
10
11
12
13
# File 'app/controllers/repository_subscriptions_controller.rb', line 9

def update
  @repository_subscription = current_user.repository_subscriptions.find(params[:id])
  @repository_subscription.update_attributes(repository_subscription_params)
  redirect_to repositories_path
end