AutoCommit Fre Jul 31 23:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-31 23:03:01 +02:00
parent 4bb81ef9d1
commit 786cde0d08
5 changed files with 20 additions and 18 deletions

View File

@@ -43,9 +43,9 @@ class Comment < ActiveRecord::Base
"comment_" + id.to_s
end
def formid
"comment_form_" + commentable_type.gsub(":","_") + "_" + commentable_id.to_s
"comment_form_" + commentable_type.gsub(":","_") + "_" + commentable_id.to_s
end
def self.formid_for(c)
"comment_form_" + c.class.to_s.gsub(":","_") + "_" + c.id.to_s
end
end
end