Added a named scope to make history lookups easier, Rate.history_for_user(user). #1915
This commit is contained in:
1 parent
5296368183
commit
33d1f84878
2 files changed
+9
-1
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<h1>Rate History</h1>
|
||||
<%# TODO: Refactor out of the view once there is a hook in the controller (Post 0.8.0). %>
|
||||
<%# Can't expect everyone to upgrade at the moment %>
|
||||
<% @rates = Rate.find(:all, :conditions => { :user_id => @user.id }) %>
|
||||
<% @rates = Rate.history_for_user(@user) %>
|
||||
|
||||
<table class="list memberships">
|
||||
<thead>
|
||||
|
||||
Reference in new issue
Block a user