Skip to content

Add scores#3

Open
pohor wants to merge 3 commits intomasterfrom
add_scores
Open

Add scores#3
pohor wants to merge 3 commits intomasterfrom
add_scores

Conversation

@pohor
Copy link
Copy Markdown
Owner

@pohor pohor commented Feb 3, 2019

No description provided.

Comment thread app/models/comment.rb
has_many :users, through: :scores


def score_value
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Metodę do liczenia sumy można zastąpić gotową: https://apidock.com/rails/ActiveRecord/Calculations/sum :)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Hahaha super, dzięki :D ! Faktycznie :D

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.

2 participants