class RepositoriesController < InheritedResources::Base

  defaults finder: :find_by_path!

  load_and_authorize_resource :except => [:index, :show]

  actions :index, :show, :create, :destroy

  def create
    resource.user = current_user
    super
  end

end

class RepositoriesController < InheritedResources::Base

  defaults finder: :find_by_path!

  load_and_authorize_resource :except => [:index, :show]

  def create
    resource.user = current_user
    super
  end

end

Allow updating metadata of repositories.
Allow updating metadata of repositories.