Correct few spelling in the comments

This commit is contained in:
DV Suresh 2013-12-21 01:19:22 -06:00
parent 21bbdf7049
commit 24886c300b
5 changed files with 5 additions and 5 deletions

View File

@ -120,7 +120,7 @@ class TopicsController < ApplicationController
title, raw = params[:title], params[:raw]
[:title, :raw].each { |key| check_length_of(key, params[key]) }
# Only suggest similar topics if the site has a minimmum amount of topics present.
# Only suggest similar topics if the site has a minimum amount of topics present.
topics = Topic.similar_to(title, raw, current_user).to_a if Topic.count_exceeds_minimum?
render_serialized(topics, BasicTopicSerializer)

View File

@ -40,7 +40,7 @@ module Jobs
puts "Failed to pull hotlinked image: #{src} - Image is bigger than #{@max_size}"
end
end
# have we successfuly downloaded that file?
# have we successfully downloaded that file?
if downloaded_urls[src].present?
url = downloaded_urls[src]
escaped_src = src.gsub("?", "\\?").gsub(".", "\\.").gsub("+", "\\+")

View File

@ -3,7 +3,7 @@ class HotTopic < ActiveRecord::Base
belongs_to :topic
belongs_to :category
# Here's the current idea behind the implementaiton of hot: random can produce good results!
# Here's the current idea behind the implementation of hot: random can produce good results!
# Hot is currently made up of a random selection of high percentile topics. It includes mostly
# new topics, but also some old ones for variety.
def self.refresh!

View File

@ -138,7 +138,7 @@ class TopicUser < ActiveRecord::Base
# In case anyone seens "seen_post_count" and gets confused, like I do.
# seen_post_count represents the highest_post_number of the topic when
# the user visited it. It may be out of alignement with last_read, meaning
# the user visited it. It may be out of alignment with last_read, meaning
# ... user visited the topic but did not read the posts
rows = exec_sql("UPDATE topic_users
SET

View File

@ -554,7 +554,7 @@ class User < ActiveRecord::Base
end
def add_trust_level
# there is a possiblity we did not load trust level column, skip it
# there is a possibility we did not load trust level column, skip it
return unless has_attribute? :trust_level
self.trust_level ||= SiteSetting.default_trust_level
end