lib/redd/models/replyable.rb in redd-0.8.8 vs lib/redd/models/replyable.rb in redd-0.9.0.pre.1
- old
+ new
@@ -6,11 +6,11 @@
module Replyable
# Add a comment to a link, reply to a comment or reply to a message.
# @param text [String] the text to comment
# @return [Comment, PrivateMessage] The created reply.
def reply(text)
- fullname = get_attribute(:name)
- @client.model(:post, '/api/comment', text: text, thing_id: fullname).first
+ fullname = read_attribute(:name)
+ client.model(:post, '/api/comment', text: text, thing_id: fullname).first
end
end
end
end