We were very inconsistent regarding these rules. Personally I prefer no empty lines around blocks, clases, etc... as recommended by the Ruby style guide [1], and they're the default values in rubocop, so those are the settings I'm applying. The exception is the `private` access modifier, since we were leaving empty lines around it most of the time. That's the default rubocop rule as well. Personally I don't have a strong preference about this one. [1] https://rubystyle.guide/#empty-lines-around-bodies
40 lines
795 B
Ruby
40 lines
795 B
Ruby
namespace :legislation do
|
|
resources :processes, only: [:index, :show] do
|
|
member do
|
|
get :debate
|
|
get :draft_publication
|
|
get :allegations
|
|
get :result_publication
|
|
get :proposals
|
|
get :milestones
|
|
get :resume
|
|
end
|
|
|
|
resources :questions, only: [:show] do
|
|
resources :answers, only: [:create]
|
|
end
|
|
|
|
resources :proposals do
|
|
member do
|
|
post :vote
|
|
put :flag
|
|
put :unflag
|
|
end
|
|
collection do
|
|
get :map
|
|
get :suggest
|
|
end
|
|
end
|
|
|
|
resources :draft_versions, only: [:show] do
|
|
get :go_to_version, on: :collection
|
|
get :changes
|
|
resources :annotations do
|
|
get :search, on: :collection
|
|
get :comments
|
|
post :new_comment
|
|
end
|
|
end
|
|
end
|
|
end
|