Skip to content

Commit 40ddecf

Browse files
committed
Fix RuboCop alerts
1 parent d9b2028 commit 40ddecf

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/activeadmin/views/activeadmin_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def readonly( field, value = nil, options = {} )
2222
cl = 'readonly-field'
2323
cl += " #{options[:class]}" if options[:class]
2424
li class: cl do
25-
if !field.blank?
25+
if field.present?
2626
label field, for: nil, class: 'field_label'
2727
else
2828
span ' '.html_safe, class: 'field_label'

spec/system/theme_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
expect(page).to have_css('body.active_admin a', text: /new post/i, style: { 'background-image': 'none' })
99
expect(page).to have_css('body.active_admin #header', style: { 'background-image': 'none' })
1010
expect(page).to have_css('body.active_admin #title_bar', style: { 'box-shadow': 'none' })
11-
expect(page).to have_css('body.active_admin #main_content', style: { 'padding': '25px 20px' })
12-
expect(page).to have_css('body.active_admin #active_admin_content', style: { 'display': 'flex' })
13-
expect(page).to have_css('body.active_admin #footer', style: { 'position': 'absolute' })
11+
expect(page).to have_css('body.active_admin #main_content', style: { padding: '25px 20px' })
12+
expect(page).to have_css('body.active_admin #active_admin_content', style: { display: 'flex' })
13+
expect(page).to have_css('body.active_admin #footer', style: { position: 'absolute' })
1414
end
1515
end

0 commit comments

Comments
 (0)