Skip to content

Commit

Permalink
use gem name as plugin for avo-pro
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Feb 21, 2025
1 parent 5733c74 commit 64e8ea2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ gem "sprockets-rails"
# Use Active Storage variant
gem "image_processing", "~> 1.12"

# source "https://rubygems.pkg.github.com/avo-hq" do
# gem "avo-dynamic_filters"
# end
gem "prefixed_ids"

gem "mapkick-rb", "~> 0.1.4"
Expand Down
2 changes: 1 addition & 1 deletion app/components/avo/row_selector_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Avo::RowSelectorComponent < Avo::BaseComponent
def data_action
data = "input->item-selector#toggle input->item-select-all#selectRow"

if Avo.plugin_manager.installed?(:avo_pro)
if Avo.plugin_manager.installed?("avo-pro")
data += " click->record-selector#toggleMultiple"
end

Expand Down
2 changes: 1 addition & 1 deletion lib/avo/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def resource_row_controls_config
# Authorization is enabled when:
# (avo-pro gem is installed) AND (authorization_client is NOT nil)
def authorization_enabled?
@authorization_enabled ||= Avo.plugin_manager.installed?(:avo_pro) && !authorization_client.nil?
@authorization_enabled ||= Avo.plugin_manager.installed?("avo-pro") && !authorization_client.nil?
end

def current_user_method(&block)
Expand Down

0 comments on commit 64e8ea2

Please sign in to comment.