Skip to content

Instantly share code, notes, and snippets.

@sixty4bit
Created October 2, 2008 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sixty4bit/14281 to your computer and use it in GitHub Desktop.
Save sixty4bit/14281 to your computer and use it in GitHub Desktop.
>> Project.reflections.each {|a| puts a.class }
Array
=> {:tasks=>#<ActiveRecord::Reflection::AssociationReflection:0x222cbc4 @klass=Task(id: integer, name: string, project_id: integer, created_at: datetime, updated_at: datetime), @primary_key_name="project_id", @through_reflection=false, @macro=:has_many, @options={:extend=>[]}, @name=:tasks, @quoted_table_name="\"tasks\"", @class_name="Task", @active_record=Project(id: integer, name: string, created_at: datetime, updated_at: datetime)>}
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment