module MigrationButton

Constants

Runner

rubocop:disable Naming/ConstantName

VERSION

Public Instance Methods

migrations_status_response() click to toggle source
# File lib/migration_button/middleware.rb, line 26
def migrations_status_response
  [
    500,
    {'Content-Type' => 'text/html; charset=utf-8'},
    [render_migrations_status]
  ]
end
render_migrations_status() click to toggle source
# File lib/migration_button/middleware.rb, line 34
def render_migrations_status
  MigrationButton::RunnerController
    .render('index',
            assigns: {
              page: MigrationButton::RunnerController.page
            })
end