Skip to content

Commit 266bf3a

Browse files
committed
Code was refactored #11
1 parent 8141ff0 commit 266bf3a

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ build/
4949
/tmp
5050
*.log
5151
test.html.haml
52+

Diff for: app/controllers/spreadsheets_controller.rb

-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ def index
66
end
77

88
def new
9-
@req = params
10-
=begin
119
if params[:access_token]
1210
spreadsheet = Spreadsheet.where(access_token: params['access_token'])[0]
1311
else
@@ -24,7 +22,6 @@ def new
2422
@msg = 'no work'
2523
# Handle if data does not get saved
2624
end
27-
=end
2825
end
2926

3027
def edit

Diff for: config/routes.rb

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
Rails.application.routes.draw do
2-
=begin
3-
get '/home/sheets', to: 'home#add_from_google', as: 'add_from_google'
4-
get '/auth/:provider/callback', to: 'callbacks#omniauth'
5-
get '/linkedin', to: 'callbacks#linkedin', as: 'linkedin'
6-
get '/callbacks/sheet/:id', to: 'callbacks#setSheet', as: 'set_sheet'
7-
get '/callbacks/index', to: 'callbacks#index', as: 'callback_index'
8-
get '/callbacks/update/:id', to: 'callbacks#update', as: 'callback_update'
9-
=end
2+
103
get '/auth/:provider/callback', to: 'spreadsheets#new'
114
resources :users, :newsletters, :home, :spreadsheets
125

0 commit comments

Comments
 (0)