Skip to content

Commit

Permalink
Update base_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
damianlegawiec committed May 22, 2024
1 parent 47f3aa2 commit aebd90b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/spree/admin/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ def taxon_wysiwyg_editor_enabled?
end

def spree_admin_show_version?
can?(:admin, current_store) && Spree::Backend::RuntimeConfig[:admin_show_version] && !Rails.env.test?
can?(:admin, current_store) && Spree::Backend::RuntimeConfig[:admin_show_version]
end

def spree_update_available?
@spree_update_available ||= Spree::Admin::Updater.update_available?
@spree_update_available ||= !Rails.env.test? && Spree::Admin::Updater.update_available?
end
end
end
Expand Down

0 comments on commit aebd90b

Please sign in to comment.