Skip to content

Commit

Permalink
fix: actions eager loader (#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Apr 28, 2024
1 parent f7bf8fe commit 1e08e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def extra_gems
end

def eager_load_actions
Rails.autoloaders.main.eager_load_namespace(Avo::Actions)
Rails.autoloaders.main.eager_load_namespace(Avo::Actions) if defined?(Avo::Actions)
end
end
end
Expand Down

0 comments on commit 1e08e09

Please sign in to comment.