Method: NotesHelper#note_target_fields

Defined in:
app/helpers/notes_helper.rb

#note_target_fields(note) ⇒ Object



13
14
15
16
17
18
# File 'app/helpers/notes_helper.rb', line 13

def note_target_fields(note)
  if note.noteable
    hidden_field_tag(:target_type, note.noteable.class.name.underscore) +
      hidden_field_tag(:target_id, note.noteable.id)
  end
end