diff --git a/Gemfile b/Gemfile index 0e8070313..9a642b22b 100644 --- a/Gemfile +++ b/Gemfile @@ -35,7 +35,7 @@ gem 'acts-as-taggable-on' gem "responders" gem 'foundation-rails' gem 'acts_as_votable' -gem "recaptcha", :require => "recaptcha/rails" +gem "recaptcha", require: "recaptcha/rails" gem 'ckeditor' group :development, :test do diff --git a/app/views/debates/_debate.html.erb b/app/views/debates/_debate.html.erb index 521b291b7..4253143a6 100644 --- a/app/views/debates/_debate.html.erb +++ b/app/views/debates/_debate.html.erb @@ -12,14 +12,14 @@
- <%= link_to debate_votes_path(debate, value: 'yes'), :class => 'in-favor', method: "post" do %> + <%= link_to debate_votes_path(debate, value: 'yes'), class: 'in-favor', method: "post" do %> <%= percentage('likes', debate) %> <% end %> - <%= link_to debate_votes_path(debate, value: 'no'), :class => 'against', method: "post" do %> + <%= link_to debate_votes_path(debate, value: 'no'), class: 'against', method: "post" do %> <%= percentage('dislikes', debate) %> <% end %> diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb index b7aea88d1..f2c713103 100644 --- a/app/views/debates/show.html.erb +++ b/app/views/debates/show.html.erb @@ -1,6 +1,6 @@
- <%= link_to t("debates.show.back_link"), debates_path, :class => 'right' %> + <%= link_to t("debates.show.back_link"), debates_path, class: 'right' %>
@@ -13,7 +13,7 @@
- <%= link_to debate_votes_path(@debate, value: 'yes'), :class => 'in-favor', method: "post" do %> + <%= link_to debate_votes_path(@debate, value: 'yes'), class: 'in-favor', method: "post" do %> <%= percentage('likes', @debate) %> <% end %> @@ -22,7 +22,7 @@
- <%= link_to debate_votes_path(@debate, value: 'no'), :class => 'against', method: "post" do %> + <%= link_to debate_votes_path(@debate, value: 'no'), class: 'against', method: "post" do %> <%= percentage('dislikes', @debate) %> <% end %> @@ -45,7 +45,7 @@
<% if current_user && @debate.editable_by?(current_user) %> - <%= link_to t("debates.show.edit_debate_link"), edit_debate_path(@debate), :class => 'button radius right' %> + <%= link_to t("debates.show.edit_debate_link"), edit_debate_path(@debate), class: 'button radius right' %> <% end %>
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 5098996ae..773bb1e46 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -14,7 +14,7 @@
<% end %> diff --git a/db/migrate/20150718091702_acts_as_commentable_with_threading_migration.rb b/db/migrate/20150718091702_acts_as_commentable_with_threading_migration.rb index 26edafbaf..977fc79df 100644 --- a/db/migrate/20150718091702_acts_as_commentable_with_threading_migration.rb +++ b/db/migrate/20150718091702_acts_as_commentable_with_threading_migration.rb @@ -6,7 +6,7 @@ class ActsAsCommentableWithThreadingMigration < ActiveRecord::Migration t.string :title t.text :body t.string :subject - t.integer :user_id, :null => false + t.integer :user_id, null: false t.integer :parent_id, :lft, :rgt t.timestamps end