Sha256: b77bee22a4bd10aea350d2aee2a49582c37e849abc469ceaabeb34034e83aa1e
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
module Dread class MissingGraphs def initialize Rails.application.eager_load! end def all_missing_dependables Dread.ar_models.map do |active_record_model| missing_dependables = Dread::MissingGraph.new(active_record_model.to_s) .missing_dependables { active_record_model => missing_dependables } if missing_dependables.any? end.compact.inject {|element, all| all.merge(element)} end def draw ConsoleOutput.generate_missing(all_missing_dependables) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dread-0.1.0 | lib/dread/missing_graphs.rb |