app/models/draw_erd/diagram.rb in draw_erd-0.1.2 vs app/models/draw_erd/diagram.rb in draw_erd-0.2.0
- old
+ new
@@ -27,15 +27,15 @@
def initialize(path)
@path = File.expand_path(path, Rails.root)
FileUtils.mkdir_p(@path)
end
- def create(title, domains=[], attributes=[:foreign_keys, :content])
+ def create(title, domains=[], attributes=false)
only = domains.map {|domain| domain.to_sym}
options = {
filetype: :png,
attributes: attributes,
- title: title.to_s,
+ title: false,
only: only,
filename: File.join(@path, title.to_s)
}
Rails.application.eager_load!