I have a user model => @user
I want to add new attribute current_time
to @user
for temporary use.
Don't want to do migration to add a column (just for temporary use):
@user.current_time = Time.now
Is there any way to achieve this?
NoMethodError (undefined method `current_time=' for #<User:0x007fd6991e1050>):
app/controllers/carts_controller.rb:47:in `block in search_user'
app/controllers/carts_controller.rb:45:in `search_user'