Skip to content

Commit

Permalink
replaces comments by their equivalent semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Mar 8, 2016
1 parent da9c379 commit 5561e3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions app/models/abilities/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ def initialize(user)
can :create, SpendingProposal

can :read, SurveyAnswer
# can :create, SurveyAnswer
# can :vote, SurveyAnswer

can :read, OpenAnswer
# can :vote, OpenAnswer
end

can :create, Annotation
Expand Down
7 changes: 1 addition & 6 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,9 @@

resources :survey_answers, only: [:new, :create]

resources :open_answers, only: [:show, :index] do
member do
# post :vote
end
end
resources :open_answers, only: [:show, :index]

get "encuesta-plaza-espana", to: "survey_answers#new", as: :encuesta_plaza_espana
# post "encuesta-plaza-espana/gracias", to: "survey_answers#create", as: :encuesta_plaza_espana_gracias
get "encuesta-plaza-espana/respuestas", to: "open_answers#index", as: :encuesta_plaza_espana_respuestas
get "encuesta-plaza-espana/respuesta/:id", to: "open_answers#show", as: :encuesta_plaza_espana_respuesta

Expand Down

0 comments on commit 5561e3e

Please sign in to comment.