0

Where does the call to the isolation_level come from?

My module fails at a.save!

module AppsHelpers      
  def self.create_app!
    a = App.new
    a.save!
    a
  end
end

The specific NoMethodError:

 Failure/Error: @app = AppsHelpers::create_app!
 NoMethodError:
   undefined method `isolation_level' for ActiveRecord::Base:Class

What could possibly cause this failure?

System:

  • ruby 1.9.3p448
  • Rails 3.2.8
JZ.
  • 21,147
  • 32
  • 115
  • 192

1 Answers1

0

This was simple. I was calling a method defined in the Transactional Isolation gem: The stacktrace was not helpful because I was calling it from an installed gem and this was a missing dependency.

JZ.
  • 21,147
  • 32
  • 115
  • 192