Skip to content

Commit

Permalink
fix: no dynamic root_path for check_avo_license (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Apr 10, 2021
1 parent 35e70d0 commit cb667e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/avo/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def render(*args)
end

def check_avo_license
unless request.original_url.match?(/.*\/avo\/resources\/.*/)
unless request.original_url.match?(/.*\/#{Avo.configuration.namespace}\/resources\/.*/)
if @license.invalid? || @license.lacks(:custom_tools)
if Rails.env.development?
@custom_tools_alert_visible = true
Expand Down

0 comments on commit cb667e1

Please sign in to comment.