Skip to content

Commit

Permalink
Update keyword syntax to support Ruby 3.0 (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
tian-im committed Sep 16, 2023
1 parent 5790dc8 commit 1f90156
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/wallaby/base/_functions.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$fa-class-map: null;

@function fa-content($fa-var) {
// Make sure FA value is wrapped in quotes
@return unquote("\"#{ $fa-var }\"");
Expand Down
4 changes: 2 additions & 2 deletions app/views/wallaby/resources/_index_query.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= content_tag :div, class: request.query_parameters.present? ? %w(query query--filtered) : %w(query) do %>
<nav class="query__actions">
<%= index_link(current_model_class, html_classes('query__clear')) {} if request.query_parameters.present? %>
<%= new_link(current_model_class, html_classes('query__create')) {} %>
<%= index_link(current_model_class, **html_classes('query__clear')) {} if request.query_parameters.present? %>
<%= new_link(current_model_class, **html_classes('query__create')) {} %>
<a id="actions_list" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" class="query__more"></a>
<%= render 'index_actions' %>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion lib/wallaby/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Wallaby
VERSION = '6.1.5' # :nodoc:
VERSION = '6.1.6' # :nodoc:
end

0 comments on commit 1f90156

Please sign in to comment.