Skip to content

Commit

Permalink
Silence logger when getting schema. [preston#104]
Browse files Browse the repository at this point in the history
  • Loading branch information
Marnen Laibow-Koser committed May 3, 2017
1 parent 78d2a5a commit 1157e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/railroady/diagram_graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def dot_label
"label=\"#{@diagram_type} diagram\\l" \
"Date: #{Time.now.strftime '%b %d %Y - %H:%M'}\\l" +
(defined?(ActiveRecord::Migrator) ? 'Migration version: ' \
"#{ActiveRecord::Migrator.current_version}\\l" : '') +
"#{Rails.logger.silence { ActiveRecord::Migrator.current_version } }\\l" : '') +
"Generated by #{APP_HUMAN_NAME} #{APP_VERSION}\\l" + 'http://railroady.prestonlee.com' \
"\\l\", fontsize=13]\n"
end
Expand Down

0 comments on commit 1157e9d

Please sign in to comment.