I believe the problem is with Ruport, which requires creating a PDF :: Writer file, which in turn requires Transaction :: Simple gem, which defines the Transaction module.
ActiveRecord has a #transaction method, but I don't think Rails has a Transaction module or class. I will be glad if he corrects you.
Moving names is usually best practice to avoid name conflicts this way. For example.
module Account class Transaction < ActiveRecord::Base .... end end
However, modeling named ActiveRecord instances can cause other problems.
Like a lot of time, renaming your transaction model may be the best choice.
You can still save the existing transaction transaction table if you want, so your migrations do not need to be changed by placing self.table_name = "transactions" inside your model.
Your associations with other models may also still be called "transaction (s)" by specifying the class name in the association call. For example.
class User < ActiveRecord::Base has_many :transactions, :class_name => "AccountTransaction" end
These two suggestions may or may not save you some time.
Sidane
source share