Skip to content

Commit

Permalink
Merge pull request #3436 from manyfold3d/fix-print-flag
Browse files Browse the repository at this point in the history
Fix display of "printed" state
  • Loading branch information
Floppy authored Jan 19, 2025
2 parents 413d2e4 + bdcf2de commit b3ccb85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def checkbox_input_row(form, name, options = {})
form.label(name, class: "col-sm-2 col-form-label"),
content_tag(:div, class: "col-sm-10") do
content_tag(:div, class: "form-switch") do
form.check_box name, class: "form-check-input form-check-inline"
safe_join [
form.check_box(name, options.merge(class: "form-check-input form-check-inline")),
errors_for(form.object, name)
].compact
end
end
]
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def self.find_param(param)
end

def printed?(file)
listed?(file, scope: :printed)
listed?(file, :printed)
end

def self.ransackable_attributes(auth_object = nil)
Expand Down

0 comments on commit b3ccb85

Please sign in to comment.