various typos in comments

This commit is contained in:
Kuba Brecka 2013-03-06 08:52:24 +01:00
parent f8e04a5c48
commit dc62136642
8 changed files with 8 additions and 8 deletions

View file

@ -443,7 +443,7 @@ class Post < ActiveRecord::Base
self.quote_count = quoted_post_numbers.size
end
# Process this post after comitting it
# Process this post after committing it
def trigger_post_process
args = { post_id: id }
args[:image_sizes] = image_sizes if image_sizes.present?

View file

@ -347,7 +347,7 @@ class User < ActiveRecord::Base
end
# The following count methods are somewhat slow - definitely don't use them in a loop.
# They might need to be denormialzied
# They might need to be denormalized
def like_count
UserAction.where(user_id: id, action_type: UserAction::WAS_LIKED).count
end

View file

@ -1,4 +1,4 @@
# this class is used to track changes to an arbirary buffer
# this class is used to track changes to an arbitrary buffer
class ContentBuffer

View file

@ -9,7 +9,7 @@ class DiffEngine
# generate an html friendly diff similar to the way Stack Exchange generate
# html diffs
#
# retruns: html containing decorations indicating the changes
# returns: html containing decorations indicating the changes
def self.html_diff(html_before, html_after)
end

View file

@ -1,4 +1,4 @@
# Like a hash, just does its best to stay in sync accross the farm
# Like a hash, just does its best to stay in sync across the farm
#
# Redis backed with an allowance for a certain amount of latency

View file

@ -28,7 +28,7 @@ class ImageOptimizer
def clear_local!
end
# yeild a list of relative paths to local images cached
# yield a list of relative paths to local images cached
def each_local
end

View file

@ -10,7 +10,7 @@ module ImageSizer
return [w.floor, h.floor] if w < max_width
# Using the maximum width, resize the heigh retaining the aspect ratio
# Using the maximum width, resize the height retaining the aspect ratio
[max_width.floor, (h * (max_width / w)).floor]
end

View file

@ -1,6 +1,6 @@
# encoding: utf-8
# Generates a slug. This is annoying beacuse it's duplicating what the javascript
# Generates a slug. This is annoying because it's duplicating what the javascript
# does, but on the other hand slugs are never matched so it's okay if they differ
# a little.
module Slug