title: Find which alias method is called in rails model
body: <p>I am new to rails development. I have created some aliases to a method and I want to know that which alias is called.</p>
  
  <p>I have this code.</p>
  
  <pre><code>alias_method :net_stock_quantity_equals :net_stock_quantity
  alias_method :net_stock_quantity_gte :net_stock_quantity
  alias_method :net_stock_quantity_lte :net_stock_quantity
  alias_method :net_stock_quantity_gt :net_stock_quantity
  alias_method :net_stock_quantity_lt :net_stock_quantity
  
  def net_stock_quantity
    #some code here
  end
  </code></pre>
  
  <p>I want to know that user has called which alias. Like if user calls <code>net_stock_quantity_equals</code> then I should know that the user has called <code>net_stock_quantity_equals</code> not <code>net_stock_quantity</code>.</p>
  
  <p>Any help would be appreciated.</p>