lib/rails_erd.rb in rails-erd-0.4.3 vs lib/rails_erd.rb in rails-erd-0.4.4
- old
+ new
@@ -2,13 +2,13 @@
require "rails_erd/railtie" if defined? Rails
# Welcome to the API documentation of Rails ERD. If you wish to extend or
# customise the output that is generated by Rails ERD, you have come to the
# right place.
-#
+#
# == Creating custom output
-#
+#
# If you want to create your own kind of diagrams, or some other output, a
# good starting point is the RailsERD::Diagram class. It can serve as the base
# of your output generation code.
#
# == Options
@@ -31,11 +31,11 @@
class << self
# Access to default options. Any instance of RailsERD::Domain and
# RailsERD::Diagram will use these options unless overridden.
attr_accessor :options
end
-
+
module Inspectable # @private :nodoc:
def inspection_attributes(*attributes)
attribute_inspection = attributes.collect { |attribute|
" @#{attribute}=\#{[Symbol, String].include?(#{attribute}.class) ? #{attribute}.inspect : #{attribute}}"
}.join
@@ -52,9 +52,10 @@
:disconnected, true,
:filename, "ERD",
:filetype, :pdf,
:indirect, true,
:inheritance, false,
+ :markup, true,
:notation, :simple,
:orientation, :horizontal,
:polymorphism, false,
:warn, true,
:title, true