timriley on rename-boot-methods
Make methods private Rename Container.boot to .regis… Add “_bootable” suffix to init/… (compare)
timriley on support-component-dirs-with-mixed-namespaces
Fix error initialization (compare)
timriley on support-component-dirs-with-mixed-namespaces
Fix error initialization (compare)
timriley on support-component-dirs-with-mixed-namespaces
Fix error initialization (compare)
timriley on support-component-dirs-with-mixed-namespaces
Fix error initialization (compare)
timriley on support-component-dirs-with-mixed-namespaces
Extract Identifier; support mix… (compare)
class Container
class DryContainer
include Dry::Container::Mixin
end
attr_reader :app, :container
class << self
attr_reader :instance
end
def self.configure
container = DryContainer.new
yield(container)
@instance = new(Rails.application, container)
freeze
end
def initialize(app, container)
@app = app
@container = container
end
delegate :[], to: :container
end
roda-opal_assets
that lets you use Sprockets with Roda for asset dependencies. Not sure if you need something that involved or if the assets
plugin is enough, but it's just become my go-to for all assets in Roda apps now (not just Clearwater apps) since Sprockets handles caching and fingerprints for cache invalidation.
quick question
if I have
MODEL = Model::Country
and Model::Country
is a dry-struct entity, which have couple of attributes from Dry-Types
and some how, wrongly, instead of using MODEL.new
for instance in our code we repeated Model::Country
that thrown attributes already initialized error, is this normal ?