##// END OF EJS Templates
remove trailing white-spaces except SQL from app/models/issue.rb....
Toshi MARUYAMA -
r6396:b81c2f17b49b
parent child
Show More
@@ -229,7 +229,7 class Issue < ActiveRecord::Base
229 229 @custom_field_values = nil
230 230 result
231 231 end
232
232
233 233 def description=(arg)
234 234 if arg.is_a?(String)
235 235 arg = arg.gsub(/(\r\n|\n|\r)/, "\r\n")
@@ -510,7 +510,7 class Issue < ActiveRecord::Base
510 510 def relations
511 511 @relations ||= (relations_from + relations_to).sort
512 512 end
513
513
514 514 # Preloads relations for a collection of issues
515 515 def self.load_relations(issues)
516 516 if issues.any?
@@ -520,7 +520,7 class Issue < ActiveRecord::Base
520 520 end
521 521 end
522 522 end
523
523
524 524 # Finds an issue relation given its id.
525 525 def find_relation(relation_id)
526 526 IssueRelation.find(relation_id, :conditions => ["issue_to_id = ? OR issue_from_id = ?", id, id])
@@ -850,7 +850,7 class Issue < ActiveRecord::Base
850 850 end
851 851 end
852 852 end
853
853
854 854 # Callback on attachment deletion
855 855 def attachment_added(obj)
856 856 if @current_journal && !obj.new_record?
General Comments 0
You need to be logged in to leave comments. Login now