Method: Cms::ContentBlockController#update

Defined in:
app/controllers/cms/content_block_controller.rb

#updateObject


47
48
49
50
51
52
53
54
55
56
57
58
# File 'app/controllers/cms/content_block_controller.rb', line 47

def update
  if update_block
    after_update_on_success
  else
    after_update_on_failure
  end
rescue ActiveRecord::StaleObjectError => @exception
  after_update_on_edit_conflict
rescue Exception => @exception
  raise @exception if @exception.is_a?(Cms::Errors::AccessDenied)
  after_update_on_error
end