module MigrationButton::RunnerHelper
Protected Instance Methods
capture_output() { || ... }
click to toggle source
# File lib/migration_button/runner.rb, line 9 def capture_output logger = ActiveRecord::Base.logger ::ActiveRecord::Base.logger = nil stdout = $stdout $stdout = StringIO.new yield $stdout.string || "" ensure ::ActiveRecord::Base.logger = logger $stdout = stdout end
migrations_paths()
click to toggle source
# File lib/migration_button/runner.rb, line 24 def migrations_paths Rails.application.paths['db/migrate'].to_a end