I hereby claim:
- I am skryukov on github.
- I am skryukov (https://keybase.io/skryukov) on keybase.
- I have a public key ASAYPasBc5z-xP_vAFlfvPH1f4JhG4E6aPuAhRD8U9wLEQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module Developer | |
extend self | |
delegate :establish_connection, :clear_all_connections!, :to => ActiveRecord::Base | |
def delayed_debug(scope) | |
detach_process do | |
close_io_objects | |
establish_connection | |
setup_process_name | |
notify_developers |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'oj' | |
gem 'benchmark-ips', require: 'benchmark/ips' | |
gem 'kalibera' | |
gem 'benchmark-memory', require: 'benchmark/memory' | |
gem 'activesupport' |
# From https://evilmartians.com/chronicles/viewcomponent-in-the-wild-embracing-tailwindcss-classes-and-html-attributes | |
class ApplicationViewComponent < ViewComponentContrib::Base | |
# Move default attrs to a constants so we can re-use it | |
EMPTY_ATTRS = {}.freeze | |
class << self | |
def html_option(name, default: nil, **opts) | |
if default | |
opts[:type] = proc { default.merge(_1) } | |
end |