config/routes.rb in social_stream-base-0.17.3 vs config/routes.rb in social_stream-base-0.18.0
- old
+ new
@@ -38,19 +38,32 @@
# /posts
(SocialStream.objects - [ :actor ]).each do |object|
resources object.to_s.pluralize
end
- resources :contacts do
- collection do
- get 'pending'
+ case SocialStream.relation_model
+ when :follow
+ resources :followers
+ resources :contacts do
+ collection do
+ get 'pending'
+ end
end
- end
+ when :custom
+ resources :contacts do
+ collection do
+ get 'pending'
+ end
+ end
- namespace "relation" do
- resources :customs
+ namespace "relation" do
+ resources :customs
+ end
+
+ resources :permissions
end
- resources :permissions
+
+ resources :activity_actions
match 'tags' => 'tags#index', :as => 'tags'
# Find subjects by slug
match 'subjects/lrdd/:id' => 'subjects#lrdd', :as => 'subject_lrdd'