Skip to content

Commit

Permalink
ready for heroku push
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnan Hemani authored and Adnan Hemani committed Feb 18, 2019
1 parent c415622 commit 580fd58
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
web: bundle exec rails s -p $PORT
worker: rackup faye.ru -s thin -E production -p 9292
8 changes: 8 additions & 0 deletions app/helpers/dashboard_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
config.publisher = {
# development faye server
domain: 'localhost:9292',
# domain: '3.90.64.98:9292',
# secret key
secret: 'secret'
}
Expand Down
Binary file modified db/development
Binary file not shown.

0 comments on commit 580fd58

Please sign in to comment.