social_stream-base 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,8 @@
|
|
1
|
-
class CommentsController <
|
2
|
-
|
1
|
+
class CommentsController < ApplicationController
|
2
|
+
include SocialStream::Controllers::Objects
|
3
3
|
|
4
|
-
respond_to :html, :xml, :js
|
5
|
-
|
6
|
-
def destroy
|
7
|
-
@post_activity = resource.post_activity
|
8
|
-
|
9
|
-
destroy!
|
10
|
-
end
|
11
|
-
|
12
4
|
def show
|
13
5
|
parent = resource.post_activity.parent
|
14
6
|
redirect_to polymorphic_path(parent.direct_object,:anchor => dom_id(parent))
|
15
7
|
end
|
16
|
-
|
17
|
-
|
18
8
|
end
|
@@ -15,7 +15,7 @@
|
|
15
15
|
:html => { :class => "new_comment", :id => "new_comment"+dom_id(activity) },
|
16
16
|
:remote => true do |f| %>
|
17
17
|
|
18
|
-
<%= f.hidden_field :
|
18
|
+
<%= f.hidden_field :owner_id %>
|
19
19
|
<%= f.hidden_field :_activity_parent_id %>
|
20
20
|
|
21
21
|
<div class="input_new_comments_container">
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 10
|
9
|
-
-
|
10
|
-
version: 0.10.
|
9
|
+
- 2
|
10
|
+
version: 0.10.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GING - DIT - UPM
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-12-01 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|