Ciao PPL!
in our project we use this global method:
application.rb
def set_user_authenticated(user)
self.app_user = user
end
I need to call it from inside a method that belongs to User model…
user.rb
def track_successful_payment(promo, transaction_id)
…
set_user_authenticated(self)
…
end
I’ve tried to create a new method:
def track_successful_payment(promo, transaction_id)
…
self.set_authenticated
…
end
in user.rb
def set_authenticated
super.set_user_authenticated(self)
end
but I’m not on the right way…
please help this is more than critical right now!