Skip to content

Commit 357c14a

Browse files
committed
Rename SyncController to Sync::RefetchesController to properly namespace under Sync Module.
1 parent a0d2d47 commit 357c14a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/controllers/sync_controller.rb renamed to app/controllers/sync/refetches_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
class SyncController < ApplicationController
1+
class Sync::RefetchesController < ApplicationController
22

33
respond_to :json
44

55
before_filter :require_valid_request
66
before_filter :find_resource
77
before_filter :find_authorized_partial
88

9-
def refetch
9+
def show
1010
render json: {
1111
html: @partial.render_to_string
1212
}

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Rails.application.routes.draw do
2-
get 'sync/refetch', controller: 'sync', action: 'refetch'
2+
get 'sync/refetch', controller: 'sync/refetches', action: 'show'
33
end

0 commit comments

Comments
 (0)