Sha256: 9ecd8f9115e3d091292dc0e912022511b2cbdc7fc13b2c41fed9e9a7eb18bb87

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module RailsAudit
  class Audit
    def self.command(_rails)
      self::COMMAND
    end

    def self.run(config)
      return true unless config[:enabled] && (config[:rails] || !self::RAILS)
      system "#{command config[:rails]} #{config[:params]}"
    end

    def self.name
      super.split('::')[-1]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-audit-0.51.0 lib/rails-audit/audit.rb