diff --git a/Procfile b/Procfile index 485e29c..9e6c22c 100644 --- a/Procfile +++ b/Procfile @@ -1 +1,2 @@ web: bundle exec rails s -p $PORT +worker: rackup faye.ru -s thin -E production -p 9292 diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index ccf82dc..22528d8 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -109,6 +109,14 @@ def current_user_has_voted?(story) Vote.where(story_id: story.id, user: current_user['username']).present? end + def should_display_button?(story) + if current_user_has_voted?(story) + return "block" + else + return "none" + end + end + def get_initial_display(story) if estimation_class(story) == "unestimated" return "block" diff --git a/config/environments/development.rb b/config/environments/development.rb index 1dcb90f..e692945 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -40,6 +40,7 @@ config.publisher = { # development faye server domain: 'localhost:9292', + # domain: '3.90.64.98:9292', # secret key secret: 'secret' } diff --git a/db/development b/db/development index 6e11be9..fcadd14 100644 Binary files a/db/development and b/db/development differ