diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index e4da54da04c..fc8dd43e99e 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -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) diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index d3b7889d63a..9f3bfe3fa0f 100644 --- a/app/jobs/regular/pull_hotlinked_images.rb +++ b/app/jobs/regular/pull_hotlinked_images.rb @@ -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("+", "\\+") diff --git a/app/models/hot_topic.rb b/app/models/hot_topic.rb index fe7dd338d9a..549f1a46b56 100644 --- a/app/models/hot_topic.rb +++ b/app/models/hot_topic.rb @@ -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! diff --git a/app/models/topic_user.rb b/app/models/topic_user.rb index 150dbf36009..61c158fa21b 100644 --- a/app/models/topic_user.rb +++ b/app/models/topic_user.rb @@ -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 diff --git a/app/models/user.rb b/app/models/user.rb index 44ff39d55e0..6cee6fb91bb 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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