cirandas.net

ref: master

plugins/diagramo/lib/ext/environment.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
require_dependency 'environment'

class Environment

  def diagramo_settings
    @diagramo_settings ||= Noosfero::Plugin::Settings.new self, DiagramoPlugin
  end
  def diagramo_settings= hash
    hash.each do |attr, value|
      self.diagramo_settings.send "#{attr}=", value
    end
  end
end