search for: evaluate_status

Displaying 1 result from an estimated 1 matches for "evaluate_status".

2007 Aug 23
6
Calling a method on class creation
...anytime I create a new instance of User. For example: user=User.new Since I created a new instance of User, I should now have access to the status property, e.g.: user.status =>"Ready" Here is my User class: class User < ActiveRecord::Base has_and_belongs_to_many :roles def evaluate_status #evaluate the status #@status = ... end end How would I call get_status whenever a new instance of User is created? It''s constructor? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "R...