hackathon_manager 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f89949d65a0c100dfd2b6d0d31156b77ccabfefdea2432d6e22bec6bcc50ee8
4
- data.tar.gz: 5b827226987d2e296b3775c0b2c102332e6e9c6b8351cd77945c5254fad348b5
3
+ metadata.gz: ae9a57d27aba8360e9210f98c264d72adcdb2d44928caf024038f6653806a5ae
4
+ data.tar.gz: 2abc86ec075523bf27f3ce10d2c9088ad4781c7b7213203eda779c615b8825fb
5
5
  SHA512:
6
- metadata.gz: ddffa76edd2a4eae2136629598070ae83319b618cf63035844545c58931bb9dfdcb0b10317a86ff8d5403977a167dc00ef2670085f00bdbf094096e3ff777ca1
7
- data.tar.gz: c9881ea59a09602e0a01a0a108423b9f013a1fda0a0fcdff9b5a202354626e2d05419552026e0e10606f2aa92b3707115855b7faf40be0309b084f3afda11357
6
+ metadata.gz: a43feb45fd5de2e1e69d932570397c73ea6b4f697416b6a8067e4abe184db82d24502a54b144838453cce3f8f035b01b519c6add83c0b46c212e77f61ad091f2
7
+ data.tar.gz: b0ff7d550ffc00c84ef93cf5cb7ffbf7c1ee8e39126225854315e0cd8b989e8882c0dff083a5adf2ee837178c5131b997fdec43d55bd4c840193e00ec293a7b6
@@ -61,14 +61,14 @@ class QuestionnairesController < ApplicationController
61
61
  # POST /apply
62
62
  # POST /apply.json
63
63
  def create
64
- if current_user.questionnaire.present?
64
+ if current_user.reload.questionnaire.present?
65
65
  return redirect_to questionnaires_path, notice: 'Application already exists.'
66
66
  end
67
67
  @questionnaire = Questionnaire.new(convert_school_name_to_id(questionnaire_params))
68
+ @questionnaire.user_id = current_user.id
68
69
 
69
70
  respond_to do |format|
70
71
  if @questionnaire.save
71
- current_user.questionnaire = @questionnaire
72
72
  @questionnaire.update_attribute(:acc_status, default_acc_status)
73
73
  format.html { redirect_to questionnaires_path }
74
74
  format.json { render json: @questionnaire, status: :created, location: @questionnaire }
@@ -1,3 +1,3 @@
1
1
  module HackathonManager
2
- VERSION = '0.9.0'.freeze
2
+ VERSION = '0.9.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackathon_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Olivera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-25 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails