Sha256: bc14e75418d7500240ef396282eb2737a3d36b278ea419e428dcc20fc634975c

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

require "active_support/ordered_options"
require "rails_erd/railtie" if defined? Rails

# Rails ERD provides several options that allow you to customise the
# generation of the diagram and the domain model itself. For an overview of
# all options available in Rails ERD, see README.rdoc.
#
# You can specify the option on the command line if you use Rails ERD with
# Rake:
#
#   % rake erd orientation=vertical title='My model diagram'
#
# When using Rails ERD from within Ruby, you can set the options on the
# RailsERD namespace module:
#
#   RailsERD.options.orientation = :vertical
#   RailsERD.options.title = "My model diagram"
module RailsERD
  class << self
    # Access to default options. Any instance of RailsERD::Domain and
    # RailsERD::Diagram will use these options unless overridden.
    attr_accessor :options
  end

  self.options = ActiveSupport::OrderedOptions[
    :attributes, :regular,
    :disconnected, true,
    :filename, "ERD",
    :filetype, :pdf,
    :indirect, true,
    :notation, :simple,
    :orientation, :horizontal,
    :warn, true,
    :title, true
  ]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-erd-0.3.0 lib/rails_erd.rb