Skip to content

Commit

Permalink
Code was refactored #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbasnal committed Jul 11, 2014
1 parent 8141ff0 commit 266bf3a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ build/
/tmp
*.log
test.html.haml

3 changes: 0 additions & 3 deletions app/controllers/spreadsheets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ def index
end

def new
@req = params
=begin
if params[:access_token]
spreadsheet = Spreadsheet.where(access_token: params['access_token'])[0]
else
Expand All @@ -24,7 +22,6 @@ def new
@msg = 'no work'
# Handle if data does not get saved
end
=end
end

def edit
Expand Down
9 changes: 1 addition & 8 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
Rails.application.routes.draw do
=begin
get '/home/sheets', to: 'home#add_from_google', as: 'add_from_google'
get '/auth/:provider/callback', to: 'callbacks#omniauth'
get '/linkedin', to: 'callbacks#linkedin', as: 'linkedin'
get '/callbacks/sheet/:id', to: 'callbacks#setSheet', as: 'set_sheet'
get '/callbacks/index', to: 'callbacks#index', as: 'callback_index'
get '/callbacks/update/:id', to: 'callbacks#update', as: 'callback_update'
=end

get '/auth/:provider/callback', to: 'spreadsheets#new'
resources :users, :newsletters, :home, :spreadsheets

Expand Down

0 comments on commit 266bf3a

Please sign in to comment.