aeonscope-acts_as_commentable 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION.yml +1 -1
- data/lib/instance_methods.rb +1 -1
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
data/VERSION.yml
CHANGED
data/lib/instance_methods.rb
CHANGED
@@ -8,7 +8,7 @@ module ActsAsComment
|
|
8
8
|
options.reverse_merge! :commentable_label => "label", :comment_label => "label"
|
9
9
|
# Default the comment label to the commentable label.
|
10
10
|
if self.instance_eval("self.#{options[:comment_label]}").blank? && commentable && commentable.respond_to?(options[:commentable_label])
|
11
|
-
instance_eval("self.#{options[:comment_label]} =
|
11
|
+
instance_eval("self.#{options[:comment_label]} = 'RE: ' + commentable.#{options[:commentable_label]}")
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|