Not ready yet for cache_key on ActiveRecord::Relation

openid
Marcin Kulik 12 years ago
parent a19c8b13ff
commit 6c007cdd9c

@ -23,10 +23,6 @@ class Asciicast < ActiveRecord::Base
update_all(:user_id => user.id, :user_token => nil)
end
def self.cache_key
Digest::MD5.hexdigest "#{scoped.maximum(:updated_at).try(:to_i)}-#{scoped.count}"
end
def meta=(file)
data = JSON.parse(file.tempfile.read)

@ -1,5 +1,3 @@
<div class="presentations">
<% cache @asciicasts do -%>
<%= render :partial => 'asciicasts/preview', :collection => @asciicasts %>
<% end -%>
<%= render :partial => 'asciicasts/preview', :collection => @asciicasts %>
</div>

Loading…
Cancel
Save