Is it possible in ActiveRecord to customize/override the name of an attribute so that it does not match the column name in the database?
My specific case involves a legacy column, "revision", that I can't remove at this time. The column name conflicts with acts_as_audited. Which of course errors out the legacy code that I need until my ...
Hi everyone. I've been getting an error, which I think could be solved by
disabling acts_as_audited when running tests, or at least stubbing
current_user in audit sweeper. The error is below. What do you think I
should do?
NoMethodError in 'Order should create a new instance given valid attributes'
You have a nil object when you didn't ...
Hey, I want to use Devise and acts_as_audited together but when I try and link them using -
class ApplicationController < ActionController::Base
audit Candidate
protected
def current_user
@user = User.find(user_session)
end
I get this error.
stack level too deep
Do I need to do it differently ?
Thanks
...