Skip to content

Commit

Permalink
Check long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
javierm committed Oct 2, 2020
1 parent 66165d8 commit 13e8025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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 All @@ -35,7 +35,7 @@
}
} else {
$(answer).addClass("medium-6");
$(answer).removeClass("answer-divider");
$(answer).removeClass("answer-divider").removeClass("answer-divider").removeClass("answer-divider").removeClass("answer-divider");
if (!$(answer).hasClass("first")) {
$(answer).insertAfter($(answer).next("div.answer"));
}
Expand Down
6 changes: 3 additions & 3 deletions app/models/budget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ 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
phases.send(phase)
end

def published_phases
phases.published.order(:id)
phases.published.order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id)
end

def description
Expand Down

0 comments on commit 13e8025

Please sign in to comment.