Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condition added for counter cache #13

Merged
merged 6 commits into from
Mar 3, 2014
Merged

Condition added for counter cache #13

merged 6 commits into from
Mar 3, 2014

Conversation

jah2488
Copy link
Owner

@jah2488 jah2488 commented Mar 3, 2014

@Sameer-Tilak Code is modified for

  1. Make it work on mongoid 4.0.x, ruby 2.1.0 and rails 4.x. Code is modified to work on mongoid versions from 2.x to 4.x
  2. Added condition : Counter will be incremented or decremented if condition is true. (eg. increment counter only after comment is published)
  3. Added required test cases for this change in code.

jah2488 added a commit that referenced this pull request Mar 3, 2014
Condition added for counter cache
@jah2488 jah2488 merged commit f854903 into master Mar 3, 2014
@jah2488 jah2488 deleted the Sameer-Tilak-master branch March 3, 2014 23:14
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