Skip to content
Extraits de code Groupes Projets
Valider 090c4126 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

touched up AspectMembership resource

parent c5801ffb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -3,20 +3,10 @@
# the COPYRIGHT file.
#
class AspectMembershipsController < ApplicationController
class AspectMembershipsController < ApplicationController
before_filter :authenticate_user!
def new
render :nothing => true
end
def index
raise
end
def destroy
def destroy
#note :id is garbage
@person_id = params[:person_id]
......@@ -58,7 +48,6 @@ class AspectMembershipsController < ApplicationController
@aspect = current_user.aspects.where(:id => params[:aspect_id]).first
@contact = current_user.contact_for(@person)
current_user.add_contact_to_aspect(@contact, @aspect)
flash.now[:notice] = I18n.t 'aspects.add_to_aspect.success'
......
......@@ -24,7 +24,7 @@ Diaspora::Application.routes.draw do
resources :posts, :only => [:show], :path => '/p/'
resources :contacts
resources :aspect_memberships
resources :aspect_memberships, :only => [:destroy, :create]
resources :people, :except => [:edit, :update] do
resources :status_messages
......@@ -41,7 +41,7 @@ Diaspora::Application.routes.draw do
devise_for :users, :controllers => {:registrations => "registrations",
:password => "devise/passwords",
:invitations => "invitations"} do
get 'invitations/resend/:id' => 'invitations#resend', :as => 'invitation_resend'
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter