]> source.dussan.org Git - redmine.git/commitdiff
Fix typo in app/controllers/watchers_controller.rb (#33567).
authorGo MAEDA <maeda@farend.jp>
Tue, 16 Jun 2020 09:06:42 +0000 (09:06 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 16 Jun 2020 09:06:42 +0000 (09:06 +0000)
Patch by Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@19823 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/watchers_controller.rb

index d68614876d3013c314ff4719b6091986746bbd49..249d10d35fef8a9f903ad3990515e368cd286b73 100644 (file)
@@ -89,7 +89,7 @@ class WatchersController < ApplicationController
 
   def find_project
     if params[:object_type] && params[:object_id]
-      @watchables = find_objets_from_params
+      @watchables = find_objects_from_params
       @projects = @watchables.map(&:project).uniq
       if @projects.size == 1
         @project = @projects.first
@@ -100,7 +100,7 @@ class WatchersController < ApplicationController
   end
 
   def find_watchables
-    @watchables = find_objets_from_params
+    @watchables = find_objects_from_params
     unless @watchables.present?
       render_404
     end
@@ -133,7 +133,7 @@ class WatchersController < ApplicationController
     users
   end
 
-  def find_objets_from_params
+  def find_objects_from_params
     klass = Object.const_get(params[:object_type].camelcase) rescue nil
     return unless klass && klass.respond_to?('watched_by')