From efa897d8ee2f4773f798f0922bc87ecb763955aa Mon Sep 17 00:00:00 2001 From: Miha Rekar Date: Mon, 28 Jul 2014 09:54:24 +0200 Subject: [PATCH] project wide ruby 1.8 to ruby 1.9 hash syntax --- Rakefile | 2 +- app/views/dashboard/show.html.erb | 6 +++--- app/views/games/_form.html.erb | 30 +++++++++++++------------- app/views/games/_rating.html.erb | 2 +- app/views/games/show.html.erb | 10 ++++----- app/views/layouts/application.html.erb | 4 ++-- app/views/player_games/show.html.erb | 4 ++-- app/views/players/_form.html.erb | 14 ++++++------ app/views/players/show.html.erb | 10 ++++----- app/views/ratings/index.html.erb | 2 +- app/views/results/new.html.erb | 6 +++--- app/views/shared/_result.html.erb | 4 ++-- app/views/shared/_results.html.erb | 2 +- config/application.rb | 2 +- config/initializers/session_store.rb | 2 +- config/initializers/wrap_parameters.rb | 2 +- config/routes.rb | 4 ++-- db/migrate/001_release_001.rb | 22 +++++++++---------- db/migrate/002_release_002.rb | 4 ++-- db/populate_data.rb | 2 +- db/seeds.rb | 4 ++-- lib/tasks/db.rake | 4 ++-- lib/tasks/repair.rake | 2 +- 23 files changed, 72 insertions(+), 72 deletions(-) diff --git a/Rakefile b/Rakefile index cfda1014..837097df 100644 --- a/Rakefile +++ b/Rakefile @@ -9,6 +9,6 @@ Elovation::Application.load_tasks begin require "rspec/core/rake_task" - task :default => :spec + task default: :spec rescue LoadError end diff --git a/app/views/dashboard/show.html.erb b/app/views/dashboard/show.html.erb index ed4eea54..6765cc1a 100644 --- a/app/views/dashboard/show.html.erb +++ b/app/views/dashboard/show.html.erb @@ -2,7 +2,7 @@

Elovation Games

- <%= link_to "New Game", new_game_path, :class => "btn btn-primary" %> + <%= link_to "New Game", new_game_path, class: "btn btn-primary" %>