Skip to content

Instantly share code, notes, and snippets.

@blissdev
Created May 20, 2009 19:09
Show Gist options
  • Save blissdev/115024 to your computer and use it in GitHub Desktop.
Save blissdev/115024 to your computer and use it in GitHub Desktop.
>> pp AlbumItem.find(:all, :conditions => { :payloadz_item_number => nil }).map{ |i| i.album_item_file }
[#<AlbumItemFile id: 22, album_item_id: 20, parent_id: nil, content_type: "audio/mp3", filename: "09_WHO_BETTER_THAN_NERO.mp3", thumbnail: nil, size: 2757537, width: nil, height: nil, created_at: "2009-03-03 21:47:09", updated_at: "2009-03-03 21:47:09">,
#<AlbumItemFile id: 24, album_item_id: 22, parent_id: nil, content_type: "audio/mp3", filename: "09_WHO_BETTER_THAN_NERO.mp3", thumbnail: nil, size: 2757537, width: nil, height: nil, created_at: "2009-03-03 21:56:01", updated_at: "2009-03-03 21:56:01">,
#<AlbumItemFile id: 28, album_item_id: 26, parent_id: nil, content_type: "audio/x-ms-wma", filename: "03_01_Track_1.wma", thumbnail: nil, size: 3349689, width: nil, height: nil, created_at: "2009-03-03 22:16:34", updated_at: "2009-03-03 22:16:34">,
#<AlbumItemFile id: 33, album_item_id: 31, parent_id: nil, content_type: "audio/x-ms-wma", filename: "09_Track_9.wma", thumbnail: nil, size: 4863224, width: nil, height: nil, created_at: "2009-03-03 22:54:33", updated_at: "2009-03-03 22:54:33">,
#<AlbumItemFile id: 47, album_item_id: 45, parent_id: nil, content_type: "audio/x-m4a", filename: "03_Let_s_Get_Right.m4a", thumbnail: nil, size: 3955957, width: nil, height: nil, created_at: "2009-03-06 03:19:40", updated_at: "2009-03-06 03:19:40">,
#<AlbumItemFile id: 48, album_item_id: 46, parent_id: nil, content_type: "audio/x-m4a", filename: "get_ya_swagga_right.m4a", thumbnail: nil, size: 4602518, width: nil, height: nil, created_at: "2009-03-06 03:27:25", updated_at: "2009-03-06 03:27:25">,
#<AlbumItemFile id: 57, album_item_id: 54, parent_id: nil, content_type: "audio/mpeg", filename: "so_they_say_rmx.mp3", thumbnail: nil, size: 7916596, width: nil, height: nil, created_at: "2009-03-13 21:28:07", updated_at: "2009-03-13 21:28:08">,
#<AlbumItemFile id: 63, album_item_id: 60, parent_id: nil, content_type: "audio/mpeg", filename: "parislights.mp3", thumbnail: nil, size: 3491839, width: nil, height: nil, created_at: "2009-03-17 20:50:47", updated_at: "2009-03-17 20:50:48">,
#<AlbumItemFile id: 65, album_item_id: 62, parent_id: nil, content_type: "audio/mpeg", filename: "parislights.mp3", thumbnail: nil, size: 3491839, width: nil, height: nil, created_at: "2009-03-17 20:57:04", updated_at: "2009-03-17 20:57:04">,
#<AlbumItemFile id: 73, album_item_id: 69, parent_id: nil, content_type: "audio/x-m4a", filename: "02_Shut_Up.m4a", thumbnail: nil, size: 3845348, width: nil, height: nil, created_at: "2009-03-23 23:46:56", updated_at: "2009-03-23 23:46:56">,
#<AlbumItemFile id: 75, album_item_id: 71, parent_id: nil, content_type: "audio/wav", filename: "VORC007.WAV", thumbnail: nil, size: 1741628, width: nil, height: nil, created_at: "2009-03-26 22:57:16", updated_at: "2009-03-26 22:57:16">,
#<AlbumItemFile id: 76, album_item_id: 72, parent_id: nil, content_type: "audio/wav", filename: "VORC008.WAV", thumbnail: nil, size: 1789244, width: nil, height: nil, created_at: "2009-03-26 22:58:44", updated_at: "2009-03-26 22:58:44">,
#<AlbumItemFile id: 84, album_item_id: 80, parent_id: nil, content_type: "audio/mpeg", filename: "envy.mp3", thumbnail: nil, size: 7238733, width: nil, height: nil, created_at: "2009-04-07 20:44:23", updated_at: "2009-04-07 20:44:23">,
#<AlbumItemFile id: 86, album_item_id: 82, parent_id: nil, content_type: "audio/mpeg", filename: "Stay_with_me_-master16b.mp3", thumbnail: nil, size: 9008139, width: nil, height: nil, created_at: "2009-04-08 22:34:33", updated_at: "2009-04-08 22:34:33">,
#<AlbumItemFile id: 87, album_item_id: 83, parent_id: nil, content_type: "audio/mpeg", filename: "The_Entrepreneur_-master16b.mp3", thumbnail: nil, size: 3222512, width: nil, height: nil, created_at: "2009-04-08 22:49:09", updated_at: "2009-04-08 22:49:09">]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment