Class: Texter::TextsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/texter/texts_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



8
9
# File 'app/controllers/texter/texts_controller.rb', line 8

def edit
end

#updateObject



11
12
13
14
15
16
17
18
19
# File 'app/controllers/texter/texts_controller.rb', line 11

def update
  RunPreprocessorsOnText.call(@text)

  if @text.save
    render :update
  else
    render :edit
  end
end