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

Add possibility to rerate #1

Open
wants to merge 26 commits into
base: add_possibility_to_rerate
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5f336a2
added option 'disable_after_rate' which makes the stars readOnly for …
Mar 1, 2013
024f894
Prevent eval things from happening
KlausTrainer Mar 26, 2013
642277c
Merge pull request #24 from KlausTrainer/master
muratguzel Mar 27, 2013
10471de
Merge pull request #20 from denislavski/master
muratguzel Mar 27, 2013
11fe7ca
Display individual ratings
petehuang Jun 9, 2013
eb6e523
Checks for existence of rating
petehuang Jun 12, 2013
ce1f812
Trailing spaces removed
skyeagle Jul 14, 2013
b08a434
Code optimization
skyeagle Jul 14, 2013
3e9fd8f
Fixed readonly logic
skyeagle Jul 14, 2013
31c8d61
Reimplemented disable after rate option
skyeagle Jul 14, 2013
d675cda
Fixed calculation of average
skyeagle Jul 14, 2013
a55f403
Merge pull request #37 from skyeagle/master
muratguzel Jul 15, 2013
46146d8
Merge pull request #33 from cubecul/patch-1
muratguzel Jul 15, 2013
7835ec0
[FEATURE] Add average calculation method
Aug 14, 2013
c682fff
Fixed broken acossiations in Rails 4.
murrekatt Nov 19, 2013
f9f9906
Merge pull request #50 from murrekatt/master
muratguzel Dec 31, 2013
d6774b3
Merge pull request #40 from CentroNet-Marketing/dirichlet-avg
muratguzel Dec 31, 2013
da3243d
rails 4 implementation
muratguzel Dec 31, 2013
7e36040
coffee script name is changed
muratguzel Dec 31, 2013
cf59224
letsrate.js.erb is changed
muratguzel Jan 2, 2014
3174378
generator is changed
muratguzel Jan 2, 2014
0cf0e5d
readme
muratguzel Jan 2, 2014
4c7049e
1.0.9
muratguzel Jan 2, 2014
dcafe1c
jruby is removed
muratguzel Jan 2, 2014
39b7e3b
create_migration method def changed to create_letsrate_migration to a…
dasibre May 14, 2014
b6b5087
Add rerate
lannn Jun 2, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/generators/letsrate/templates/rater_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class RaterController < ApplicationController

def create
if current_user.present?
obj = eval "#{params[:klass]}.find(#{params[:id]})"
obj = params[:klass].classify.constantize.find(params[:id])
if params[:dimension].present?
obj.rate params[:score].to_i, current_user.id, "#{params[:dimension]}"
else
Expand Down