Skip to content

Commit

Permalink
Fail on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
javierm committed Oct 2, 2020
1 parent 01a7793 commit 4d28f9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/polls.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}).map(function() {
return Math.random().toString(36).substr(2); // remove `0.`
});
return strings.join("").substring(0, 64);
return strings.join("").substring(0,64);
},
replaceToken: function(token) {
$(".js-question-answer").each(function() {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $sidebar: #245b80;
$sidebar-hover: #25597c;
$sidebar-active: #f4fcd0;

.admin {
body.admin {
@include admin-layout;

h2 {
Expand Down
4 changes: 2 additions & 2 deletions app/models/budget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def name_uniqueness_by_budget
scope :finished, -> { where(phase: "finished") }

class << self; undef :open; end
scope :open, -> { where.not(phase: "finished") }
scope :open, ->{ where.not(phase: "finished") }

def self.current
where.not(phase: "drafting").order(:created_at).last
where.not(phase:"drafting").order(:created_at).last
end

def current_phase
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/proposals/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h2><%= t("admin.proposals.index.title") %></h2>

<% if @proposals.any? %>
<%= render "/admin/shared/proposal_search", url: admin_proposals_path %>
<%= render "/admin/shared/proposal_search",url: admin_proposals_path %>

<h3><%= page_entries_info @proposals %></h3>

Expand Down

0 comments on commit 4d28f9e

Please sign in to comment.