timriley on support-component-dirs-with-mixed-namespaces
Update tests (compare)
timriley on support-component-dirs-with-mixed-namespaces
Update component unit specs (compare)
I'm looking at ordinalize
method and found out that it returns nil
with cases like:
inflector = Dry::Inflector.new
inflector.ordinalize(17) # nil
inflector.ordinalize(24) # nil
inflector.ordinalize(25) # nil
inflector.ordinalize(34) # nil
should it be a correct behaviour?
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 ?