cirandas.net

ref: master

plugins/diagramo/controllers/admin/diagramo_plugin_admin_controller.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
class DiagramoPluginAdminController < AdminController

  def index
    # FIXME: remove request.post? on rails3
    if request.patch? or request.post?
      environment.diagramo_settings = params[:environment][:diagramo_settings]
      environment.save!
    end
  end

  protected

end