app/helpers/components/card_helper.rb in shadcn-ui-0.0.2 vs app/helpers/components/card_helper.rb in shadcn-ui-0.0.3
- old
+ new
@@ -1,5 +1,5 @@
module Components::CardHelper
- def render_card(footer: nil, title: nil, subtitle: nil, body: nil, **options, &block)
+ def render_card(title: nil, subtitle: nil, body: nil, footer: nil, **options, &block)
render "components/ui/card", title: title, subtitle: subtitle, footer: footer, body: (block ? capture(&block) : body), block:, options: options
end
end