Joel Drapper
Joel Drapper
A module that behaves like `Literal::Attributes`, but proxies all the setting and getting to `super`. This could be used on ActiveRecord models, for example.
It should be valid to use positional arguments like `begin`, for example.
@bradgessler recently brought up the need for this again, and suggested having a `safe` method that we can use to wrap any safe value. ```ruby div(onclick: safe("foo")) { "Foo" }...
### Discussed in https://github.com/orgs/phlex-ruby/discussions/583 Originally posted by **bradgessler** July 21, 2023 Sometimes a component needs to be rendered, but the output is not needed, like in this controller at https://github.com/rubymonolith/classic/blob/47d9fee6e17f5f49d7dfbefee4b194b6eddcff8d/app/controllers/posts_controller.rb#L71-L73...
In order to support fast selective rendering, we need to be able to pull the id from the attributes hash quickly, so we need to be able to depend on...
Otherwise, if one fragment is embedded in another fragment, it will not be able to throw early.
Phlex could issue a warning or raise whenever an _element_ method is overridden in a subclass. The warning could be ignored explicitly with a macro, e.g. ```ruby override def title...
It looks like some of the queries aren't compatible with a `strict_loading_by_default` configuration. With this configuration in `application.rb`, `solid_queue` doesn't work. ``` config.active_record.strict_loading_by_default = true ``` I will try to...