Sha256: c1cc53d02d9ee002bb7d3678b8d0f0a4293082d7834b5c09f6b6911cf4847412
Contents?: true
Size: 632 Bytes
Versions: 7
Compression:
Stored size: 632 Bytes
Contents
require 'active_support/configurable' module SqlTracker class Config include ActiveSupport::Configurable config_accessor :tracked_paths, :tracked_sql_command, :output_path, :enabled class << self def apply_defaults self.enabled = enabled.nil? ? true : enabled self.tracked_paths ||= %w(app lib) self.tracked_sql_command ||= %w(SELECT INSERT UPDATE DELETE) self.output_path ||= begin if defined?(::Rails) && ::Rails.root File.join(::Rails.root.to_s, 'tmp') else 'tmp' end end self end end end end
Version data entries
7 entries across 7 versions & 1 rubygems