Sha256: 00eb09f998c49763edddc74a0c03bd9f3ca838416e96646e5bfd8ea5fe577fec
Contents?: true
Size: 450 Bytes
Versions: 47
Compression:
Stored size: 450 Bytes
Contents
# patch SQLiteDatabaseTasks for JRuby # The problem is that JRuby does not yet support the "out:" option for # Kernel.system(). Uses plain output redirection as a workaround. require 'active_record/tasks/sqlite_database_tasks' require 'shellwords' module ActiveRecord module Tasks class SQLiteDatabaseTasks private def run_cmd(cmd, args, out) `#{cmd} #{Shellwords.join(args)} > "#{out}"` end end end end
Version data entries
47 entries across 47 versions & 2 rubygems