Skip to content

Conversation

@josefarias
Copy link

CleanShot 2024-10-11 at 20 13 03@2x

@josefarias josefarias merged commit c9ac10c into main Oct 15, 2024
@josefarias josefarias deleted the events-system branch October 15, 2024 18:43

def boost!
transaction do
increment! :boost_count
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class: "btn btn--plain",
data: { action: "toggle-class#toggle" },
form_class: "full-width" do %>
+ <%= bubble.boost_count if bubble.boost_count.positive? %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can lean on the AR counter methods here for a more natural API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants