-
Notifications
You must be signed in to change notification settings - Fork 122
Conversation
Hi @NARKOZ Thank for the PR. Mostly looks good. Two questions:
|
All specs passed except one. See https://travis-ci.org/twitter/activerecord-reputation-system/jobs/6014002#L232
Yes, I'll update it tomorrow. |
Got the idea why build fails: Arel places extra space before |
I've revisited this PR. |
You should probably squash these commits, @NARKOZ. |
As soon as @kn comments I will squash, but thank you so much.
I kept it for backwards compatibility, but I can remove that. |
@bjackson be sure that gem entry in your Gemfile looks like this: gem 'activerecord-reputation-system', github: 'NARKOZ/activerecord-reputation-system', branch: 'rails4' |
It does. I don't get this error using the master branch. |
@NARKOZ tnx! I hope it will be merged at last! 👍 |
@kn are you OK with this change? |
@@ -27,7 +27,7 @@ def find_with_reputation(*args) | |||
options[:select] = build_select_statement(table_name, reputation_name, options[:select]) | |||
options[:joins] = build_join_statement(table_name, name, srn, options[:joins]) | |||
options[:conditions] = build_condition_statement(reputation_name, options[:conditions]) | |||
find(find_scope, options) | |||
joins(options[:joins]).select(options[:select]).where(options[:conditions]).send(find_scope) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps, we don't need to create options
hash in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about that.
Made a few minor comments. o/w lgtm! |
Any news on this PR? |
👍 cmon guys, merge it will ya? |
Sorry everyone! @kn no longer works for Twitter, so that's probably why he's not responding. We're currently reviewing this PR and will merge or comment ASAP. |
LGTM |
I'm still watching :) |
For me, when using the rails4-branch under ruby-1.9.3, i get the following error: 1) ReputationSystem::Reputation Callback #set_target_type_for_sti should assign target's ancestors class name where reputation is declared if STI
Failure/Error: rep.target_type.should == Person.name
expected: "Person"
got: "Programmer" (using ==)
# ./spec/reputation_system/models/reputation_spec.rb:72:in `block (4 levels) in <top (required)>'
Finished in 0.31345 seconds
139 examples, 1 failure Is this known, does it only happen for me? |
Any news? |
is there anybody out there? |
What's the news on this pull request? |
I thought if twitter "supports" for ex a gem, there wouldn't be 1,5 year delays for updating gem for the current Rails version..... ⚓ |
Just so you all know, there is a Rails 4 branch for this someone made- On Wed, Oct 1, 2014 at 3:26 AM, Cameron Dutro notifications@github.com
Jesse Waites |
We can also all annoy the Twitter Engineering team on Twitter - I just On Wed, Oct 1, 2014 at 9:00 AM, Jesse Waites jesse.waites@gmail.com wrote:
Jesse Waites |
@piratebroadcast I totally forgot about writing them on twitter) already done |
@camertron I merged this change in, thanks everyone. If someone wants to become a maintainer of this project outside of Twitter, let me know. |
No description provided.