Topic: Method attributes in C# alternative for Rails

Hi all,
I have a requirement to assign a guid to every method (action) in Rails controllers.
With C#, it's easy to do that ( http://msdn.microsoft.com/en-us/library … s.71).aspx ).
For example:
|Author("Joe Programmer")|
class Account
{
    |IsTested|
    public void AddOrder(Order orderToAdd)
    {
        orders.Add(orderToAdd);
    }
}

Author("Joe Programmer") and IsTested are 2 attributes assigned to class Account and method AddOrder accordingly.
Is there a same way in Rails or a similar trick to achieve that in Rails?

Thanks,
-Khang

Last edited by nhatkhang (2012-05-29 05:58:18)