lib/moribus/alias_association.rb
def alias_association(alias_name, association_name)
        if reflection = reflect_on_association(association_name)
          ActiveRecord::Reflection.add_reflection self, alias_name, reflection

          alias_association_methods(alias_name, reflection)
          reflection
        end
      end
# Aliases association reflection in ActiveRecord's (internal) reflections hash and
# association-specific methods. See module description for example.
Aliases association reflection in ActiveRecord's (internal) reflections hash and
association-specific methods. See module description for example.
Aliases association reflection in ActiveRecord ' s ( internal ) reflections hash and association - specific methods . See module description for example .
def alias_association(alias_name, association_name)
        if reflection = reflect_on_association(association_name)
          ActiveRecord::Reflection.add_reflection self, alias_name, reflection
          alias_association_methods(alias_name, reflection)
          reflection
        end
      end
def alias_association ( alias_name , association_name ) if reflection = reflect_on_association ( association_name ) ActiveRecord :: Reflection . add_reflection self , alias_name , reflection alias_association_methods ( alias_name , reflection ) reflection end end
Aliases association reflection in ActiveRecord's (internal) reflections hash and
association-specific methods.
Aliases association reflection in ActiveRecord ' s ( internal ) reflections hash and association - specific methods .
alias_name
association_name