Class: PostmanMta::NotesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/postman_mta/notes_controller.rb

Constant Summary

Constants inherited from ApplicationController

ApplicationController::MODULES

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
# File 'app/controllers/postman_mta/notes_controller.rb', line 3

def create
  render note.create(notes_params)
end

#updateObject



7
8
9
# File 'app/controllers/postman_mta/notes_controller.rb', line 7

def update
  render note.update(notes_params[:id], notes_params)
end