File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,21 @@ jobs:
18
18
- name : Set up Ruby
19
19
uses : ruby/setup-ruby@v1
20
20
with :
21
- ruby-version : 3.1
21
+ ruby-version : " 3.1"
22
22
- name : Install bundler
23
23
run : gem install bundler
24
24
- name : Setup
25
25
run : bin/setup
26
26
- name : Rubocop
27
- run : bundle exec rake rubocop
27
+ run : bundle exec rubocop --fail-level W
28
28
# steep:
29
29
# runs-on: ubuntu-latest
30
30
# steps:
31
31
# - uses: actions/checkout@v2
32
32
# - name: Set up Ruby
33
33
# uses: ruby/setup-ruby@v1
34
34
# with:
35
- # ruby-version: 3.1
35
+ # ruby-version: " 3.1"
36
36
# - name: Install bundler
37
37
# run: gem install bundler
38
38
# - name: Setup
44
44
strategy :
45
45
matrix :
46
46
ruby :
47
- - 2.7
48
- - 3.0
49
- - 3.1
47
+ - " 2.7"
48
+ - " 3.0"
49
+ - " 3.1"
50
50
steps :
51
51
- uses : actions/checkout@v2
52
52
- name : Set up Ruby
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ def setup_menu_options(aa_config)
44
44
ActiveAdmin ::MenuTree . log_debug ( "menu_options: #{ menu_options . inspect } " )
45
45
aa_config . namespace :admin do |admin |
46
46
admin . build_menu do |menu |
47
- menu_options . each do |options |
48
- menu . add ( **options )
47
+ menu_options . each do |option |
48
+ menu . add ( **option . dup )
49
49
end
50
50
end
51
51
end
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ def initialize
13
13
def menu_tree = ( new_value )
14
14
raise ActiveAdmin ::MenuTree ::Error , "Invalid config" unless new_value . is_a? Array
15
15
16
+ ActiveAdmin ::MenuTree . log_debug ( "menu_tree=: #{ new_value . inspect } " )
16
17
@menu_tree = new_value . map ( &:deep_symbolize_keys )
17
18
@menu_options = flatten_options ( @menu_tree )
18
19
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ require "active_admin/dsl"
3
4
require "activeadmin/menu_tree"
4
5
5
6
support_files = Dir [ File . expand_path ( "support/**/*.rb" , __dir__ ) ]
You can’t perform that action at this time.
0 commit comments