Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 3.4.1 generating warning about redefining 'object_id' in FacebookAds::AdAccount #218

Open
benstein opened this issue Dec 26, 2024 · 0 comments

Comments

@benstein
Copy link

Which SDK version are you using?

facebookbusiness-21.0.2

What's the issue?

Upgraded from Ruby 3.3 to 3.4.1 and this gem is generating the following logs:

.rvm/gems/ruby-3.4.1/gems/facebookbusiness-21.0.2/lib/facebook_ads/fields.rb:30: warning: redefining 'object_id' may cause serious problems

Steps/Sample code to reproduce the issue

Load the FacebookAds::AdAccount class

Observed Results:

$ irb
> FacebookAds::AdAccount
/Users/ben/.rvm/gems/ruby-3.4.1/gems/facebookbusiness-21.0.2/lib/facebook_ads/fields.rb:30: warning: redefining 'object_id' may cause serious problems
/Users/ben/.rvm/gems/ruby-3.4.1/gems/facebookbusiness-21.0.2/lib/facebook_ads/fields.rb:30: warning: redefining 'object_id' may cause serious problems
/Users/ben/.rvm/gems/ruby-3.4.1/gems/facebookbusiness-21.0.2/lib/facebook_ads/fields.rb:30: warning: redefining 'object_id' may cause serious problems
/Users/ben/.rvm/gems/ruby-3.4.1/gems/facebookbusiness-21.0.2/lib/facebook_ads/fields.rb:30: warning: redefining 'object_id' may cause serious problems

Expected Results:

  • What did you expect to happen?

Either suppress the warning if it's actually safe, or a different approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant