app/models/slide.rb in beef-slides-0.2.0 vs app/models/slide.rb in beef-slides-0.2.2
- old
+ new
@@ -18,17 +18,9 @@
options.reverse_merge! :methods => :public_filename, :only => [:title, :strapline, :link, :date]
super options
end
private
- def reindex
- if self.created_at == self.updated_at #i.e. a new record
- Slide.all(:order => 'position ASC, created_at DESC', :conditions => ['id != ', self.id]).each_with_index do |slide, index|
- slide.update_attribute(:position, index)
- end
- end
- end
-
def has_file?
filename != 'no_file'
end
end