Sha256: 40d736b2f9fe8dbab1b290e1ecf48a49ed1d170f4f455b542de8755e8ea7c9cd
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
module DrawErd class DiagramController < ::DrawErd::ApplicationController def index @schemas = DrawErd::Diagram.schemas title = DrawErd.config.title path = DrawErd.config.path @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, DrawErd.config.attributes) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
draw_erd-0.4.0 | app/controllers/draw_erd/diagram_controller.rb |
draw_erd-0.3.0 | app/controllers/draw_erd/diagram_controller.rb |
draw_erd-0.2.0 | app/controllers/draw_erd/diagram_controller.rb |