app/helpers/lookbook/component_helper.rb in lookbook-0.7.2.beta.2 vs app/helpers/lookbook/component_helper.rb in lookbook-0.7.2.beta.3
- old
+ new
@@ -8,10 +8,10 @@
def icon(name, size: 4, **attrs)
render_component "icon", name: name, size: size, **attrs
end
def code(language = "ruby", **opts, &block)
- render_component "code", {language: language, **opts}, &block
+ render_component "code", language: language, **opts, &block
end
if Rails.version.to_f < 6.1
def class_names(*args)
tokens = build_tag_values(*args).flat_map { |value| value.to_s.split(/\s+/) }.uniq