Remove consecutive blank lines
This commit is contained in:
@@ -22,7 +22,6 @@ class Admin::Poll::ActivePollsController < Admin::Poll::BaseController
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def load_active_poll
|
||||
|
||||
@@ -15,7 +15,6 @@ class Dashboard::SupportsController < Dashboard::BaseController
|
||||
accumulate_supports(grouped_votes)
|
||||
end
|
||||
|
||||
|
||||
def supports
|
||||
@supports ||= Vote
|
||||
.where(votable: proposal,
|
||||
|
||||
@@ -10,7 +10,6 @@ class Legislation::ProcessesController < Legislation::BaseController
|
||||
before_action :set_random_seed, only: :proposals
|
||||
before_action :check_past, only: :resume
|
||||
|
||||
|
||||
def index
|
||||
@current_filter ||= "open"
|
||||
@processes = ::Legislation::Process.send(@current_filter).published
|
||||
|
||||
@@ -18,7 +18,6 @@ class Poll::PairAnswer < ApplicationRecord
|
||||
validates :answer_right, inclusion: { in: ->(a) { a.question.question_answers.visibles }},
|
||||
unless: ->(a) { a.question.blank? }
|
||||
|
||||
|
||||
scope :by_author, ->(author_id) { where(author_id: author_id) }
|
||||
scope :by_question, ->(question_id) { where(question_id: question_id) }
|
||||
|
||||
|
||||
@@ -358,7 +358,6 @@ class User < ApplicationRecord
|
||||
followables.compact.map { |followable| followable.tags.map(&:name) }.flatten.compact.uniq
|
||||
end
|
||||
|
||||
|
||||
def self.current_user
|
||||
Thread.current[:user]
|
||||
end
|
||||
|
||||
@@ -110,7 +110,6 @@ class VotationType < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
<% if @account.email.present? %>
|
||||
<h2><%= t("account.show.notifications")%></h2>
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<a class="small float-right clear" data-open="download-modal"><%= t("admin.budget_investments.index.download_current_selection") %></a>
|
||||
|
||||
|
||||
<% if params[:advanced_filters].include?("winners") %>
|
||||
<% if display_calculate_winners_button?(@budget) %>
|
||||
<%= link_to calculate_winner_button_text(@budget),
|
||||
|
||||
@@ -127,7 +127,6 @@
|
||||
label: t("admin.budget_investments.edit.milestone_tags") %>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="small-12 column margin-top">
|
||||
<%= f.submit(class: "button", value: t("admin.budget_investments.edit.submit_button")) %>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<h2><%= t("admin.hidden_comments.index.title") %></h2>
|
||||
<p><%= t("admin.shared.moderated_content") %></p>
|
||||
|
||||
|
||||
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_comments.index" %>
|
||||
|
||||
<% if @comments.any? %>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<h2><%= t("admin.hidden_debates.index.title") %></h2>
|
||||
<p><%= t("admin.shared.moderated_content") %></p>
|
||||
|
||||
|
||||
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_debates.index" %>
|
||||
|
||||
<% if @debates.any? %>
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<%= simple_format @signature_sheet.required_fields_to_verify %>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="verified_signatures" class="callout success">
|
||||
<strong>
|
||||
<%= t("admin.signature_sheets.show.verified",
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="users">
|
||||
<%= render "users" %>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 medium-9 column">
|
||||
<table>
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tabs-content" data-tabs-content="topics-tabs">
|
||||
<%= render "topics/filter_subnav" %>
|
||||
<div class="tabs-panel is-active" id="tab-comments">
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
|
||||
<%= f.email_field :email, placeholder: t("devise_views.users.registrations.new.email_label") %>
|
||||
|
||||
|
||||
<%= f.password_field :password, autocomplete: "off",
|
||||
placeholder: t("devise_views.users.registrations.new.password_label") %>
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<main>
|
||||
<%= render "feeds" %>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<% if @cards.any? %>
|
||||
<div class="small-12 column <%= "large-8" if feed_processes_enabled? %>">
|
||||
|
||||
Reference in New Issue
Block a user