Skip to content

For Ruby 3.2.2 and Rails 7 undefined method `exists?' for File:Class (NoMethodError) #39

@fernandoiwamoto

Description

@fernandoiwamoto

/home/fernando/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/logging-rails-0.6.0/lib/logging/rails/railtie.rb:18:in block in <class:Railtie>': undefined method exists?' for File:Class (NoMethodError)

  load file if File.exists? file
                   ^^^^^^^^

Did you mean? exist?
from /home/fernando/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.8.1/lib/rails/initializable.rb:32:in `instance_exec'

I am using 0.6.0 of this gem + rails 7.0.8.1 and ruby 3.2.2

I think the exists is removed from ruby 3.0.0 / rails 7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions