Sha256: 37a7da9404610f6865b27eeba6a5586d66b670eae6b0ebe6739dbf0b012be797
Contents?: true
Size: 447 Bytes
Versions: 2
Compression:
Stored size: 447 Bytes
Contents
module DrawErd class DiagramController < ::DrawErd::ApplicationController def index @schemas = DrawErd::Diagram.schemas title = 'erd' path = 'draw-erd' @image_file = File.join(path, "#{title}.png") @domains = [] @domains = params['schemas'].keys if params.key?('schemas') diagram = DrawErd::Diagram.new(File.join('public', 'images', path)) diagram.create(title, @domains) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
draw_erd-0.1.2 | app/controllers/draw_erd/diagram_controller.rb |
draw_erd-0.1.1 | app/controllers/draw_erd/diagram_controller.rb |