From 1ea0dd0ffc37232d27f4fa1350af6ebb3b5439f2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 25 Oct 2012 11:59:41 +0300 Subject: App docs --- doc/app/NotesHelper.html | 581 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 581 insertions(+) create mode 100644 doc/app/NotesHelper.html (limited to 'doc/app/NotesHelper.html') diff --git a/doc/app/NotesHelper.html b/doc/app/NotesHelper.html new file mode 100644 index 00000000000..c2940f8dc95 --- /dev/null +++ b/doc/app/NotesHelper.html @@ -0,0 +1,581 @@ + + + + + + +module NotesHelper - Rails Application Documentation + + + + + + + + + + + + + + + + +
+

module NotesHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + + + + +
+ +
+ loading_more_notes?() + click to toggle source +
+ + +
+ + + + + +
+
# File app/helpers/notes_helper.rb, line 2
+def loading_more_notes?
+  params[:loading_more].present?
+end
+
+ +
+ + + + +
+ + +
+ +
+ loading_new_notes?() + click to toggle source +
+ + +
+ + + + + +
+
# File app/helpers/notes_helper.rb, line 6
+def loading_new_notes?
+  params[:loading_new].present?
+end
+
+ +
+ + + + +
+ + +
+ +
+ note_for_main_target?(note) + click to toggle source +
+ + +
+ +

Helps to distinguish e.g. commit notes in mr notes list

+ + + +
+
# File app/helpers/notes_helper.rb, line 11
+def note_for_main_target?(note)
+  !@mixed_targets || @main_target_type == note.noteable_type
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + -- cgit v1.2.1