Skip to content

Commit

Permalink
Some tweakage
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbertram committed May 31, 2011
1 parent cc3f396 commit 4229bb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2,233 deletions.
4 changes: 3 additions & 1 deletion app/controllers/press_shift_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ def index
end

def press
if params[:button] == "left"
if cookies[:pressed].present?
# DO NOTHING!!!
elsif params[:button] == "left"
$redis.incr('left_count')
elsif params[:button] == "right"
$redis.incr('right_count')
Expand Down
3 changes: 0 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,5 @@ class Application < Rails::Application

# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"

# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
end
end
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.

WhichShiftButton::Application.config.session_store :cookie_store, :key => '_WhichShiftButton_session'
WhichShiftButton::Application.config.session_store :cookie_store, :key => '_wsb_session'

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
Expand Down
Loading

0 comments on commit 4229bb1

Please sign in to comment.