# File app/models/document.rb, line 34 def size self.class.find(self.id, :select => 'length(data)').length.to_i end