rq 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1063) hide show
  1. data/a.rb +7 -1
  2. data/all/install.sh +0 -0
  3. data/all/packages/arrayfields-4.7.0.tgz +0 -0
  4. data/all/packages/open4-0.9.6.tgz +0 -0
  5. data/all/packages/ruby-1.8.7-p72.tar.gz +0 -0
  6. data/bin/rq +0 -0
  7. data/bin/rqmailer +0 -0
  8. data/{rails/log/development.log → db} +0 -0
  9. data/extconf.rb +28 -8
  10. data/gemspec.rb +17 -8
  11. data/lib/rq.rb +4 -1
  12. data/lib/rq/arrayfields.rb +0 -0
  13. data/lib/rq/jobrunner.rb +2 -0
  14. data/rdoc.sh +0 -0
  15. data/rq +0 -0
  16. data/white_box/killrq +0 -0
  17. metadata +95 -1405
  18. data/all/packages/arrayfields-3.6.0.tgz +0 -0
  19. data/all/packages/main-1.0.0.tgz +0 -0
  20. data/all/packages/open4-0.9.3.tgz +0 -0
  21. data/all/packages/ruby-1.8.6.tar.gz +0 -0
  22. data/all/packages/rubygems-0.9.2.tgz +0 -0
  23. data/rails/README +0 -182
  24. data/rails/Rakefile +0 -10
  25. data/rails/app/controllers/application.rb +0 -7
  26. data/rails/app/helpers/application_helper.rb +0 -3
  27. data/rails/config/boot.rb +0 -45
  28. data/rails/config/database.yml +0 -36
  29. data/rails/config/environment.rb +0 -60
  30. data/rails/config/environments/development.rb +0 -21
  31. data/rails/config/environments/production.rb +0 -18
  32. data/rails/config/environments/test.rb +0 -19
  33. data/rails/config/routes.rb +0 -23
  34. data/rails/data/config +0 -13
  35. data/rails/data/template +0 -7
  36. data/rails/doc/README_FOR_APP +0 -2
  37. data/rails/example.rb +0 -89
  38. data/rails/log/production.log +0 -0
  39. data/rails/log/server.log +0 -0
  40. data/rails/log/test.log +0 -0
  41. data/rails/public/404.html +0 -30
  42. data/rails/public/500.html +0 -30
  43. data/rails/public/dispatch.cgi +0 -10
  44. data/rails/public/dispatch.fcgi +0 -24
  45. data/rails/public/dispatch.rb +0 -10
  46. data/rails/public/favicon.ico +0 -0
  47. data/rails/public/images/rails.png +0 -0
  48. data/rails/public/index.html +0 -277
  49. data/rails/public/javascripts/application.js +0 -2
  50. data/rails/public/javascripts/controls.js +0 -833
  51. data/rails/public/javascripts/dragdrop.js +0 -942
  52. data/rails/public/javascripts/effects.js +0 -1088
  53. data/rails/public/javascripts/prototype.js +0 -2515
  54. data/rails/public/robots.txt +0 -1
  55. data/rails/q.20070629122840.tgz +0 -0
  56. data/rails/script/about +0 -3
  57. data/rails/script/breakpointer +0 -3
  58. data/rails/script/console +0 -3
  59. data/rails/script/destroy +0 -3
  60. data/rails/script/generate +0 -3
  61. data/rails/script/performance/benchmarker +0 -3
  62. data/rails/script/performance/profiler +0 -3
  63. data/rails/script/plugin +0 -3
  64. data/rails/script/process/inspector +0 -3
  65. data/rails/script/process/reaper +0 -3
  66. data/rails/script/process/spawner +0 -3
  67. data/rails/script/runner +0 -3
  68. data/rails/script/server +0 -3
  69. data/rails/test/test_helper.rb +0 -28
  70. data/rails/vendor/rails/actionmailer/CHANGELOG +0 -297
  71. data/rails/vendor/rails/actionmailer/MIT-LICENSE +0 -21
  72. data/rails/vendor/rails/actionmailer/README +0 -145
  73. data/rails/vendor/rails/actionmailer/Rakefile +0 -95
  74. data/rails/vendor/rails/actionmailer/install.rb +0 -30
  75. data/rails/vendor/rails/actionmailer/lib/action_mailer.rb +0 -50
  76. data/rails/vendor/rails/actionmailer/lib/action_mailer/adv_attr_accessor.rb +0 -30
  77. data/rails/vendor/rails/actionmailer/lib/action_mailer/base.rb +0 -582
  78. data/rails/vendor/rails/actionmailer/lib/action_mailer/helpers.rb +0 -111
  79. data/rails/vendor/rails/actionmailer/lib/action_mailer/mail_helper.rb +0 -19
  80. data/rails/vendor/rails/actionmailer/lib/action_mailer/part.rb +0 -113
  81. data/rails/vendor/rails/actionmailer/lib/action_mailer/part_container.rb +0 -51
  82. data/rails/vendor/rails/actionmailer/lib/action_mailer/quoting.rb +0 -59
  83. data/rails/vendor/rails/actionmailer/lib/action_mailer/utils.rb +0 -8
  84. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/text/format.rb +0 -1466
  85. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail.rb +0 -3
  86. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/address.rb +0 -242
  87. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/attachments.rb +0 -39
  88. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/base64.rb +0 -71
  89. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/config.rb +0 -69
  90. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/encode.rb +0 -467
  91. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/facade.rb +0 -552
  92. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/header.rb +0 -914
  93. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/info.rb +0 -35
  94. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/loader.rb +0 -1
  95. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mail.rb +0 -447
  96. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mailbox.rb +0 -433
  97. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mbox.rb +0 -1
  98. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/net.rb +0 -280
  99. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/obsolete.rb +0 -135
  100. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/parser.rb +0 -1522
  101. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/port.rb +0 -377
  102. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/quoting.rb +0 -131
  103. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/scanner.rb +0 -41
  104. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/scanner_r.rb +0 -263
  105. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/stringio.rb +0 -277
  106. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/tmail.rb +0 -1
  107. data/rails/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/utils.rb +0 -238
  108. data/rails/vendor/rails/actionmailer/lib/action_mailer/version.rb +0 -9
  109. data/rails/vendor/rails/actionmailer/test/abstract_unit.rb +0 -30
  110. data/rails/vendor/rails/actionmailer/test/fixtures/first_mailer/share.rhtml +0 -1
  111. data/rails/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.rhtml +0 -1
  112. data/rails/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.rhtml +0 -1
  113. data/rails/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.rhtml +0 -5
  114. data/rails/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_test_helper.rhtml +0 -1
  115. data/rails/vendor/rails/actionmailer/test/fixtures/helpers/test_helper.rb +0 -5
  116. data/rails/vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml +0 -1
  117. data/rails/vendor/rails/actionmailer/test/fixtures/path.with.dots/multipart_with_template_path_with_dots.rhtml +0 -0
  118. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email +0 -14
  119. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email10 +0 -20
  120. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email11 +0 -34
  121. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email12 +0 -32
  122. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email13 +0 -29
  123. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email2 +0 -114
  124. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email3 +0 -70
  125. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email4 +0 -59
  126. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email5 +0 -19
  127. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email6 +0 -20
  128. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email7 +0 -66
  129. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email8 +0 -47
  130. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email9 +0 -28
  131. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email_quoted_with_0d0a +0 -14
  132. data/rails/vendor/rails/actionmailer/test/fixtures/raw_email_with_partially_quoted_subject +0 -14
  133. data/rails/vendor/rails/actionmailer/test/fixtures/second_mailer/share.rhtml +0 -1
  134. data/rails/vendor/rails/actionmailer/test/fixtures/templates/signed_up.rhtml +0 -3
  135. data/rails/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.rhtml +0 -1
  136. data/rails/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak +0 -1
  137. data/rails/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.rhtml +0 -10
  138. data/rails/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.rhtml +0 -2
  139. data/rails/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.rhtml +0 -1
  140. data/rails/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.rhtml +0 -3
  141. data/rails/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.rhtml +0 -3
  142. data/rails/vendor/rails/actionmailer/test/mail_helper_test.rb +0 -91
  143. data/rails/vendor/rails/actionmailer/test/mail_render_test.rb +0 -79
  144. data/rails/vendor/rails/actionmailer/test/mail_service_test.rb +0 -816
  145. data/rails/vendor/rails/actionmailer/test/quoting_test.rb +0 -57
  146. data/rails/vendor/rails/actionmailer/test/tmail_test.rb +0 -13
  147. data/rails/vendor/rails/actionmailer/test/url_test.rb +0 -68
  148. data/rails/vendor/rails/actionpack/CHANGELOG +0 -3138
  149. data/rails/vendor/rails/actionpack/MIT-LICENSE +0 -21
  150. data/rails/vendor/rails/actionpack/README +0 -469
  151. data/rails/vendor/rails/actionpack/RUNNING_UNIT_TESTS +0 -25
  152. data/rails/vendor/rails/actionpack/Rakefile +0 -154
  153. data/rails/vendor/rails/actionpack/examples/address_book/index.rhtml +0 -33
  154. data/rails/vendor/rails/actionpack/examples/address_book/layout.rhtml +0 -8
  155. data/rails/vendor/rails/actionpack/examples/address_book_controller.cgi +0 -9
  156. data/rails/vendor/rails/actionpack/examples/address_book_controller.fcgi +0 -6
  157. data/rails/vendor/rails/actionpack/examples/address_book_controller.rb +0 -52
  158. data/rails/vendor/rails/actionpack/examples/address_book_controller.rbx +0 -4
  159. data/rails/vendor/rails/actionpack/examples/benchmark.rb +0 -52
  160. data/rails/vendor/rails/actionpack/examples/benchmark_with_ar.fcgi +0 -89
  161. data/rails/vendor/rails/actionpack/examples/blog_controller.cgi +0 -53
  162. data/rails/vendor/rails/actionpack/examples/debate/index.rhtml +0 -14
  163. data/rails/vendor/rails/actionpack/examples/debate/new_topic.rhtml +0 -22
  164. data/rails/vendor/rails/actionpack/examples/debate/topic.rhtml +0 -32
  165. data/rails/vendor/rails/actionpack/examples/debate_controller.cgi +0 -57
  166. data/rails/vendor/rails/actionpack/install.rb +0 -30
  167. data/rails/vendor/rails/actionpack/lib/action_controller.rb +0 -83
  168. data/rails/vendor/rails/actionpack/lib/action_controller/assertions.rb +0 -82
  169. data/rails/vendor/rails/actionpack/lib/action_controller/assertions/deprecated_assertions.rb +0 -228
  170. data/rails/vendor/rails/actionpack/lib/action_controller/assertions/dom_assertions.rb +0 -25
  171. data/rails/vendor/rails/actionpack/lib/action_controller/assertions/model_assertions.rb +0 -12
  172. data/rails/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb +0 -140
  173. data/rails/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb +0 -98
  174. data/rails/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb +0 -571
  175. data/rails/vendor/rails/actionpack/lib/action_controller/assertions/tag_assertions.rb +0 -117
  176. data/rails/vendor/rails/actionpack/lib/action_controller/base.rb +0 -1231
  177. data/rails/vendor/rails/actionpack/lib/action_controller/benchmarking.rb +0 -89
  178. data/rails/vendor/rails/actionpack/lib/action_controller/caching.rb +0 -616
  179. data/rails/vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb +0 -36
  180. data/rails/vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +0 -211
  181. data/rails/vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb +0 -125
  182. data/rails/vendor/rails/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb +0 -95
  183. data/rails/vendor/rails/actionpack/lib/action_controller/cgi_ext/session_performance_fix.rb +0 -30
  184. data/rails/vendor/rails/actionpack/lib/action_controller/cgi_process.rb +0 -231
  185. data/rails/vendor/rails/actionpack/lib/action_controller/components.rb +0 -182
  186. data/rails/vendor/rails/actionpack/lib/action_controller/cookies.rb +0 -78
  187. data/rails/vendor/rails/actionpack/lib/action_controller/deprecated_dependencies.rb +0 -65
  188. data/rails/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb +0 -17
  189. data/rails/vendor/rails/actionpack/lib/action_controller/deprecated_request_methods.rb +0 -34
  190. data/rails/vendor/rails/actionpack/lib/action_controller/filters.rb +0 -667
  191. data/rails/vendor/rails/actionpack/lib/action_controller/flash.rb +0 -182
  192. data/rails/vendor/rails/actionpack/lib/action_controller/helpers.rb +0 -131
  193. data/rails/vendor/rails/actionpack/lib/action_controller/integration.rb +0 -552
  194. data/rails/vendor/rails/actionpack/lib/action_controller/layout.rb +0 -313
  195. data/rails/vendor/rails/actionpack/lib/action_controller/macros/auto_complete.rb +0 -53
  196. data/rails/vendor/rails/actionpack/lib/action_controller/macros/in_place_editing.rb +0 -33
  197. data/rails/vendor/rails/actionpack/lib/action_controller/mime_responds.rb +0 -181
  198. data/rails/vendor/rails/actionpack/lib/action_controller/mime_type.rb +0 -200
  199. data/rails/vendor/rails/actionpack/lib/action_controller/pagination.rb +0 -402
  200. data/rails/vendor/rails/actionpack/lib/action_controller/request.rb +0 -265
  201. data/rails/vendor/rails/actionpack/lib/action_controller/rescue.rb +0 -142
  202. data/rails/vendor/rails/actionpack/lib/action_controller/resources.rb +0 -405
  203. data/rails/vendor/rails/actionpack/lib/action_controller/response.rb +0 -35
  204. data/rails/vendor/rails/actionpack/lib/action_controller/routing.rb +0 -1340
  205. data/rails/vendor/rails/actionpack/lib/action_controller/scaffolding.rb +0 -189
  206. data/rails/vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb +0 -335
  207. data/rails/vendor/rails/actionpack/lib/action_controller/session/drb_server.rb +0 -32
  208. data/rails/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb +0 -35
  209. data/rails/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb +0 -105
  210. data/rails/vendor/rails/actionpack/lib/action_controller/session_management.rb +0 -142
  211. data/rails/vendor/rails/actionpack/lib/action_controller/status_codes.rb +0 -88
  212. data/rails/vendor/rails/actionpack/lib/action_controller/streaming.rb +0 -138
  213. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml +0 -44
  214. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml +0 -26
  215. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml +0 -11
  216. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.rhtml +0 -29
  217. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.rhtml +0 -2
  218. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml +0 -10
  219. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.rhtml +0 -21
  220. data/rails/vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.rhtml +0 -2
  221. data/rails/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/edit.rhtml +0 -7
  222. data/rails/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/layout.rhtml +0 -69
  223. data/rails/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml +0 -27
  224. data/rails/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/new.rhtml +0 -6
  225. data/rails/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/show.rhtml +0 -9
  226. data/rails/vendor/rails/actionpack/lib/action_controller/test_process.rb +0 -504
  227. data/rails/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb +0 -108
  228. data/rails/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/document.rb +0 -65
  229. data/rails/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +0 -530
  230. data/rails/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb +0 -823
  231. data/rails/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +0 -105
  232. data/rails/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb +0 -11
  233. data/rails/vendor/rails/actionpack/lib/action_controller/vendor/xml_node.rb +0 -97
  234. data/rails/vendor/rails/actionpack/lib/action_controller/verification.rb +0 -107
  235. data/rails/vendor/rails/actionpack/lib/action_pack.rb +0 -24
  236. data/rails/vendor/rails/actionpack/lib/action_pack/version.rb +0 -9
  237. data/rails/vendor/rails/actionpack/lib/action_view.rb +0 -32
  238. data/rails/vendor/rails/actionpack/lib/action_view/base.rb +0 -538
  239. data/rails/vendor/rails/actionpack/lib/action_view/compiled_templates.rb +0 -70
  240. data/rails/vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb +0 -237
  241. data/rails/vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb +0 -218
  242. data/rails/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb +0 -24
  243. data/rails/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb +0 -10
  244. data/rails/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb +0 -128
  245. data/rails/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb +0 -429
  246. data/rails/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb +0 -17
  247. data/rails/vendor/rails/actionpack/lib/action_view/helpers/deprecated_helper.rb +0 -34
  248. data/rails/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb +0 -446
  249. data/rails/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb +0 -363
  250. data/rails/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb +0 -176
  251. data/rails/vendor/rails/actionpack/lib/action_view/helpers/java_script_macros_helper.rb +0 -233
  252. data/rails/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb +0 -193
  253. data/rails/vendor/rails/actionpack/lib/action_view/helpers/javascripts/controls.js +0 -833
  254. data/rails/vendor/rails/actionpack/lib/action_view/helpers/javascripts/dragdrop.js +0 -942
  255. data/rails/vendor/rails/actionpack/lib/action_view/helpers/javascripts/effects.js +0 -1088
  256. data/rails/vendor/rails/actionpack/lib/action_view/helpers/javascripts/prototype.js +0 -2515
  257. data/rails/vendor/rails/actionpack/lib/action_view/helpers/number_helper.rb +0 -155
  258. data/rails/vendor/rails/actionpack/lib/action_view/helpers/pagination_helper.rb +0 -86
  259. data/rails/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb +0 -876
  260. data/rails/vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb +0 -140
  261. data/rails/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb +0 -103
  262. data/rails/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb +0 -406
  263. data/rails/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb +0 -406
  264. data/rails/vendor/rails/actionpack/lib/action_view/partials.rb +0 -128
  265. data/rails/vendor/rails/actionpack/lib/action_view/template_error.rb +0 -110
  266. data/rails/vendor/rails/actionpack/test/abstract_unit.rb +0 -16
  267. data/rails/vendor/rails/actionpack/test/active_record_unit.rb +0 -116
  268. data/rails/vendor/rails/actionpack/test/activerecord/active_record_assertions_test.rb +0 -92
  269. data/rails/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb +0 -142
  270. data/rails/vendor/rails/actionpack/test/activerecord/pagination_test.rb +0 -156
  271. data/rails/vendor/rails/actionpack/test/controller/action_pack_assertions_test.rb +0 -610
  272. data/rails/vendor/rails/actionpack/test/controller/addresses_render_test.rb +0 -45
  273. data/rails/vendor/rails/actionpack/test/controller/assert_select_test.rb +0 -576
  274. data/rails/vendor/rails/actionpack/test/controller/base_test.rb +0 -136
  275. data/rails/vendor/rails/actionpack/test/controller/benchmark_test.rb +0 -33
  276. data/rails/vendor/rails/actionpack/test/controller/caching_test.rb +0 -228
  277. data/rails/vendor/rails/actionpack/test/controller/capture_test.rb +0 -82
  278. data/rails/vendor/rails/actionpack/test/controller/cgi_test.rb +0 -440
  279. data/rails/vendor/rails/actionpack/test/controller/components_test.rb +0 -151
  280. data/rails/vendor/rails/actionpack/test/controller/content_type_test.rb +0 -139
  281. data/rails/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb +0 -0
  282. data/rails/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb +0 -0
  283. data/rails/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb +0 -0
  284. data/rails/vendor/rails/actionpack/test/controller/cookie_test.rb +0 -88
  285. data/rails/vendor/rails/actionpack/test/controller/custom_handler_test.rb +0 -41
  286. data/rails/vendor/rails/actionpack/test/controller/deprecated_instance_variables_test.rb +0 -48
  287. data/rails/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +0 -60
  288. data/rails/vendor/rails/actionpack/test/controller/fake_controllers.rb +0 -16
  289. data/rails/vendor/rails/actionpack/test/controller/filter_params_test.rb +0 -42
  290. data/rails/vendor/rails/actionpack/test/controller/filters_test.rb +0 -695
  291. data/rails/vendor/rails/actionpack/test/controller/flash_test.rb +0 -102
  292. data/rails/vendor/rails/actionpack/test/controller/fragment_store_setting_test.rb +0 -45
  293. data/rails/vendor/rails/actionpack/test/controller/helper_test.rb +0 -187
  294. data/rails/vendor/rails/actionpack/test/controller/integration_test.rb +0 -154
  295. data/rails/vendor/rails/actionpack/test/controller/layout_test.rb +0 -187
  296. data/rails/vendor/rails/actionpack/test/controller/mime_responds_test.rb +0 -351
  297. data/rails/vendor/rails/actionpack/test/controller/mime_type_test.rb +0 -33
  298. data/rails/vendor/rails/actionpack/test/controller/new_render_test.rb +0 -750
  299. data/rails/vendor/rails/actionpack/test/controller/raw_post_test.rb +0 -68
  300. data/rails/vendor/rails/actionpack/test/controller/redirect_test.rb +0 -156
  301. data/rails/vendor/rails/actionpack/test/controller/render_test.rb +0 -293
  302. data/rails/vendor/rails/actionpack/test/controller/request_test.rb +0 -317
  303. data/rails/vendor/rails/actionpack/test/controller/resources_test.rb +0 -482
  304. data/rails/vendor/rails/actionpack/test/controller/routing_test.rb +0 -1801
  305. data/rails/vendor/rails/actionpack/test/controller/selector_test.rb +0 -628
  306. data/rails/vendor/rails/actionpack/test/controller/send_file_test.rb +0 -117
  307. data/rails/vendor/rails/actionpack/test/controller/session_management_test.rb +0 -156
  308. data/rails/vendor/rails/actionpack/test/controller/test_test.rb +0 -495
  309. data/rails/vendor/rails/actionpack/test/controller/url_rewriter_test.rb +0 -115
  310. data/rails/vendor/rails/actionpack/test/controller/verification_test.rb +0 -227
  311. data/rails/vendor/rails/actionpack/test/controller/webservice_test.rb +0 -248
  312. data/rails/vendor/rails/actionpack/test/fixtures/addresses/list.rhtml +0 -1
  313. data/rails/vendor/rails/actionpack/test/fixtures/companies.yml +0 -24
  314. data/rails/vendor/rails/actionpack/test/fixtures/company.rb +0 -9
  315. data/rails/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml +0 -1
  316. data/rails/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml +0 -1
  317. data/rails/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs +0 -1
  318. data/rails/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml +0 -1
  319. data/rails/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql +0 -42
  320. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_ivar.rhtml +0 -1
  321. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_method.rhtml +0 -1
  322. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_ivar.rhtml +0 -1
  323. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_method.rhtml +0 -1
  324. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_ivar.rhtml +0 -1
  325. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_method.rhtml +0 -1
  326. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_ivar.rhtml +0 -1
  327. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_method.rhtml +0 -1
  328. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_ivar.rhtml +0 -1
  329. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_method.rhtml +0 -1
  330. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_ivar.rhtml +0 -1
  331. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_method.rhtml +0 -1
  332. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_ivar.rhtml +0 -1
  333. data/rails/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_method.rhtml +0 -1
  334. data/rails/vendor/rails/actionpack/test/fixtures/developer.rb +0 -7
  335. data/rails/vendor/rails/actionpack/test/fixtures/developers.yml +0 -21
  336. data/rails/vendor/rails/actionpack/test/fixtures/developers_projects.yml +0 -13
  337. data/rails/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.rhtml +0 -1
  338. data/rails/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb +0 -5
  339. data/rails/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb +0 -3
  340. data/rails/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb +0 -3
  341. data/rails/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml +0 -1
  342. data/rails/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml +0 -1
  343. data/rails/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml +0 -1
  344. data/rails/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab +0 -1
  345. data/rails/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml +0 -1
  346. data/rails/vendor/rails/actionpack/test/fixtures/layouts/builder.rxml +0 -3
  347. data/rails/vendor/rails/actionpack/test/fixtures/layouts/standard.rhtml +0 -1
  348. data/rails/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.rhtml +0 -2
  349. data/rails/vendor/rails/actionpack/test/fixtures/layouts/yield.rhtml +0 -2
  350. data/rails/vendor/rails/actionpack/test/fixtures/multipart/binary_file +0 -0
  351. data/rails/vendor/rails/actionpack/test/fixtures/multipart/large_text_file +0 -10
  352. data/rails/vendor/rails/actionpack/test/fixtures/multipart/mixed_files +0 -0
  353. data/rails/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg +0 -0
  354. data/rails/vendor/rails/actionpack/test/fixtures/multipart/single_parameter +0 -5
  355. data/rails/vendor/rails/actionpack/test/fixtures/multipart/text_file +0 -10
  356. data/rails/vendor/rails/actionpack/test/fixtures/project.rb +0 -3
  357. data/rails/vendor/rails/actionpack/test/fixtures/projects.yml +0 -7
  358. data/rails/vendor/rails/actionpack/test/fixtures/public/images/rails.png +0 -0
  359. data/rails/vendor/rails/actionpack/test/fixtures/public/javascripts/application.js +0 -1
  360. data/rails/vendor/rails/actionpack/test/fixtures/replies.yml +0 -13
  361. data/rails/vendor/rails/actionpack/test/fixtures/reply.rb +0 -5
  362. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rhtml +0 -1
  363. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rjs +0 -1
  364. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.rhtml +0 -1
  365. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rhtml +0 -1
  366. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rjs +0 -1
  367. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rxml +0 -1
  368. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rhtml +0 -1
  369. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rjs +0 -1
  370. data/rails/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rxml +0 -1
  371. data/rails/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.rhtml +0 -1
  372. data/rails/vendor/rails/actionpack/test/fixtures/test/_customer.rhtml +0 -1
  373. data/rails/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.rhtml +0 -1
  374. data/rails/vendor/rails/actionpack/test/fixtures/test/_hash_object.rhtml +0 -1
  375. data/rails/vendor/rails/actionpack/test/fixtures/test/_hello.rxml +0 -1
  376. data/rails/vendor/rails/actionpack/test/fixtures/test/_partial_only.rhtml +0 -1
  377. data/rails/vendor/rails/actionpack/test/fixtures/test/_person.rhtml +0 -2
  378. data/rails/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.rhtml +0 -2
  379. data/rails/vendor/rails/actionpack/test/fixtures/test/block_content_for.rhtml +0 -2
  380. data/rails/vendor/rails/actionpack/test/fixtures/test/capturing.rhtml +0 -4
  381. data/rails/vendor/rails/actionpack/test/fixtures/test/content_for.rhtml +0 -2
  382. data/rails/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs +0 -2
  383. data/rails/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.rhtml +0 -1
  384. data/rails/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs +0 -6
  385. data/rails/vendor/rails/actionpack/test/fixtures/test/erb_content_for.rhtml +0 -2
  386. data/rails/vendor/rails/actionpack/test/fixtures/test/greeting.rhtml +0 -1
  387. data/rails/vendor/rails/actionpack/test/fixtures/test/hello.rxml +0 -4
  388. data/rails/vendor/rails/actionpack/test/fixtures/test/hello_world.rhtml +0 -1
  389. data/rails/vendor/rails/actionpack/test/fixtures/test/hello_world.rxml +0 -3
  390. data/rails/vendor/rails/actionpack/test/fixtures/test/hello_world_container.rxml +0 -3
  391. data/rails/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.rhtml +0 -1
  392. data/rails/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.rxml +0 -11
  393. data/rails/vendor/rails/actionpack/test/fixtures/test/list.rhtml +0 -1
  394. data/rails/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.rxml +0 -4
  395. data/rails/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.rhtml +0 -4
  396. data/rails/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.rhtml +0 -1
  397. data/rails/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.rhtml +0 -1
  398. data/rails/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.rhtml +0 -1
  399. data/rails/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.rhtml +0 -9
  400. data/rails/vendor/rails/actionpack/test/fixtures/topic.rb +0 -3
  401. data/rails/vendor/rails/actionpack/test/fixtures/topics.yml +0 -22
  402. data/rails/vendor/rails/actionpack/test/template/active_record_helper_test.rb +0 -204
  403. data/rails/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb +0 -232
  404. data/rails/vendor/rails/actionpack/test/template/benchmark_helper_test.rb +0 -72
  405. data/rails/vendor/rails/actionpack/test/template/compiled_templates_test.rb +0 -135
  406. data/rails/vendor/rails/actionpack/test/template/date_helper_test.rb +0 -1322
  407. data/rails/vendor/rails/actionpack/test/template/deprecated_helper_test.rb +0 -36
  408. data/rails/vendor/rails/actionpack/test/template/deprecated_instance_variables_test.rb +0 -43
  409. data/rails/vendor/rails/actionpack/test/template/form_helper_test.rb +0 -499
  410. data/rails/vendor/rails/actionpack/test/template/form_options_helper_test.rb +0 -489
  411. data/rails/vendor/rails/actionpack/test/template/form_tag_helper_test.rb +0 -172
  412. data/rails/vendor/rails/actionpack/test/template/java_script_macros_helper_test.rb +0 -109
  413. data/rails/vendor/rails/actionpack/test/template/javascript_helper_test.rb +0 -67
  414. data/rails/vendor/rails/actionpack/test/template/number_helper_test.rb +0 -92
  415. data/rails/vendor/rails/actionpack/test/template/prototype_helper_test.rb +0 -466
  416. data/rails/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb +0 -90
  417. data/rails/vendor/rails/actionpack/test/template/tag_helper_test.rb +0 -69
  418. data/rails/vendor/rails/actionpack/test/template/text_helper_test.rb +0 -349
  419. data/rails/vendor/rails/actionpack/test/template/url_helper_test.rb +0 -366
  420. data/rails/vendor/rails/actionpack/test/testing_sandbox.rb +0 -11
  421. data/rails/vendor/rails/actionwebservice/CHANGELOG +0 -279
  422. data/rails/vendor/rails/actionwebservice/MIT-LICENSE +0 -21
  423. data/rails/vendor/rails/actionwebservice/README +0 -364
  424. data/rails/vendor/rails/actionwebservice/Rakefile +0 -171
  425. data/rails/vendor/rails/actionwebservice/TODO +0 -32
  426. data/rails/vendor/rails/actionwebservice/examples/googlesearch/README +0 -143
  427. data/rails/vendor/rails/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb +0 -50
  428. data/rails/vendor/rails/actionwebservice/examples/googlesearch/autoloading/google_search_controller.rb +0 -57
  429. data/rails/vendor/rails/actionwebservice/examples/googlesearch/delegated/google_search_service.rb +0 -108
  430. data/rails/vendor/rails/actionwebservice/examples/googlesearch/delegated/search_controller.rb +0 -7
  431. data/rails/vendor/rails/actionwebservice/examples/googlesearch/direct/google_search_api.rb +0 -50
  432. data/rails/vendor/rails/actionwebservice/examples/googlesearch/direct/search_controller.rb +0 -58
  433. data/rails/vendor/rails/actionwebservice/examples/metaWeblog/README +0 -17
  434. data/rails/vendor/rails/actionwebservice/examples/metaWeblog/apis/blogger_api.rb +0 -60
  435. data/rails/vendor/rails/actionwebservice/examples/metaWeblog/apis/blogger_service.rb +0 -34
  436. data/rails/vendor/rails/actionwebservice/examples/metaWeblog/apis/meta_weblog_api.rb +0 -67
  437. data/rails/vendor/rails/actionwebservice/examples/metaWeblog/apis/meta_weblog_service.rb +0 -48
  438. data/rails/vendor/rails/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb +0 -16
  439. data/rails/vendor/rails/actionwebservice/lib/action_web_service.rb +0 -66
  440. data/rails/vendor/rails/actionwebservice/lib/action_web_service/api.rb +0 -249
  441. data/rails/vendor/rails/actionwebservice/lib/action_web_service/base.rb +0 -42
  442. data/rails/vendor/rails/actionwebservice/lib/action_web_service/casting.rb +0 -136
  443. data/rails/vendor/rails/actionwebservice/lib/action_web_service/client.rb +0 -3
  444. data/rails/vendor/rails/actionwebservice/lib/action_web_service/client/base.rb +0 -28
  445. data/rails/vendor/rails/actionwebservice/lib/action_web_service/client/soap_client.rb +0 -113
  446. data/rails/vendor/rails/actionwebservice/lib/action_web_service/client/xmlrpc_client.rb +0 -58
  447. data/rails/vendor/rails/actionwebservice/lib/action_web_service/container.rb +0 -3
  448. data/rails/vendor/rails/actionwebservice/lib/action_web_service/container/action_controller_container.rb +0 -93
  449. data/rails/vendor/rails/actionwebservice/lib/action_web_service/container/delegated_container.rb +0 -86
  450. data/rails/vendor/rails/actionwebservice/lib/action_web_service/container/direct_container.rb +0 -69
  451. data/rails/vendor/rails/actionwebservice/lib/action_web_service/dispatcher.rb +0 -2
  452. data/rails/vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstract.rb +0 -203
  453. data/rails/vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +0 -376
  454. data/rails/vendor/rails/actionwebservice/lib/action_web_service/invocation.rb +0 -202
  455. data/rails/vendor/rails/actionwebservice/lib/action_web_service/protocol.rb +0 -4
  456. data/rails/vendor/rails/actionwebservice/lib/action_web_service/protocol/abstract.rb +0 -112
  457. data/rails/vendor/rails/actionwebservice/lib/action_web_service/protocol/discovery.rb +0 -37
  458. data/rails/vendor/rails/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb +0 -176
  459. data/rails/vendor/rails/actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb +0 -241
  460. data/rails/vendor/rails/actionwebservice/lib/action_web_service/protocol/xmlrpc_protocol.rb +0 -110
  461. data/rails/vendor/rails/actionwebservice/lib/action_web_service/scaffolding.rb +0 -283
  462. data/rails/vendor/rails/actionwebservice/lib/action_web_service/struct.rb +0 -68
  463. data/rails/vendor/rails/actionwebservice/lib/action_web_service/support/class_inheritable_options.rb +0 -26
  464. data/rails/vendor/rails/actionwebservice/lib/action_web_service/support/signature_types.rb +0 -222
  465. data/rails/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/layout.rhtml +0 -65
  466. data/rails/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/methods.rhtml +0 -6
  467. data/rails/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml +0 -29
  468. data/rails/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/result.rhtml +0 -30
  469. data/rails/vendor/rails/actionwebservice/lib/action_web_service/test_invoke.rb +0 -110
  470. data/rails/vendor/rails/actionwebservice/lib/action_web_service/version.rb +0 -9
  471. data/rails/vendor/rails/actionwebservice/setup.rb +0 -1379
  472. data/rails/vendor/rails/actionwebservice/test/abstract_client.rb +0 -183
  473. data/rails/vendor/rails/actionwebservice/test/abstract_dispatcher.rb +0 -505
  474. data/rails/vendor/rails/actionwebservice/test/abstract_unit.rb +0 -45
  475. data/rails/vendor/rails/actionwebservice/test/api_test.rb +0 -102
  476. data/rails/vendor/rails/actionwebservice/test/apis/auto_load_api.rb +0 -3
  477. data/rails/vendor/rails/actionwebservice/test/apis/broken_auto_load_api.rb +0 -2
  478. data/rails/vendor/rails/actionwebservice/test/base_test.rb +0 -42
  479. data/rails/vendor/rails/actionwebservice/test/casting_test.rb +0 -86
  480. data/rails/vendor/rails/actionwebservice/test/client_soap_test.rb +0 -152
  481. data/rails/vendor/rails/actionwebservice/test/client_xmlrpc_test.rb +0 -151
  482. data/rails/vendor/rails/actionwebservice/test/container_test.rb +0 -73
  483. data/rails/vendor/rails/actionwebservice/test/dispatcher_action_controller_soap_test.rb +0 -137
  484. data/rails/vendor/rails/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb +0 -59
  485. data/rails/vendor/rails/actionwebservice/test/fixtures/db_definitions/mysql.sql +0 -7
  486. data/rails/vendor/rails/actionwebservice/test/fixtures/users.yml +0 -10
  487. data/rails/vendor/rails/actionwebservice/test/gencov +0 -3
  488. data/rails/vendor/rails/actionwebservice/test/invocation_test.rb +0 -185
  489. data/rails/vendor/rails/actionwebservice/test/run +0 -6
  490. data/rails/vendor/rails/actionwebservice/test/scaffolded_controller_test.rb +0 -146
  491. data/rails/vendor/rails/actionwebservice/test/struct_test.rb +0 -52
  492. data/rails/vendor/rails/actionwebservice/test/test_invoke_test.rb +0 -112
  493. data/rails/vendor/rails/activerecord/CHANGELOG +0 -3043
  494. data/rails/vendor/rails/activerecord/README +0 -360
  495. data/rails/vendor/rails/activerecord/RUNNING_UNIT_TESTS +0 -64
  496. data/rails/vendor/rails/activerecord/Rakefile +0 -226
  497. data/rails/vendor/rails/activerecord/examples/associations.png +0 -0
  498. data/rails/vendor/rails/activerecord/examples/associations.rb +0 -87
  499. data/rails/vendor/rails/activerecord/examples/shared_setup.rb +0 -15
  500. data/rails/vendor/rails/activerecord/examples/validation.rb +0 -85
  501. data/rails/vendor/rails/activerecord/install.rb +0 -30
  502. data/rails/vendor/rails/activerecord/lib/active_record.rb +0 -85
  503. data/rails/vendor/rails/activerecord/lib/active_record/acts/list.rb +0 -244
  504. data/rails/vendor/rails/activerecord/lib/active_record/acts/nested_set.rb +0 -211
  505. data/rails/vendor/rails/activerecord/lib/active_record/acts/tree.rb +0 -89
  506. data/rails/vendor/rails/activerecord/lib/active_record/aggregations.rb +0 -191
  507. data/rails/vendor/rails/activerecord/lib/active_record/associations.rb +0 -1627
  508. data/rails/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb +0 -190
  509. data/rails/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb +0 -158
  510. data/rails/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb +0 -56
  511. data/rails/vendor/rails/activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb +0 -50
  512. data/rails/vendor/rails/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +0 -169
  513. data/rails/vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb +0 -210
  514. data/rails/vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb +0 -247
  515. data/rails/vendor/rails/activerecord/lib/active_record/associations/has_one_association.rb +0 -80
  516. data/rails/vendor/rails/activerecord/lib/active_record/attribute_methods.rb +0 -75
  517. data/rails/vendor/rails/activerecord/lib/active_record/base.rb +0 -2164
  518. data/rails/vendor/rails/activerecord/lib/active_record/calculations.rb +0 -270
  519. data/rails/vendor/rails/activerecord/lib/active_record/callbacks.rb +0 -367
  520. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +0 -279
  521. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +0 -130
  522. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +0 -58
  523. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +0 -343
  524. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +0 -303
  525. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +0 -161
  526. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/db2_adapter.rb +0 -228
  527. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/firebird_adapter.rb +0 -728
  528. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb +0 -861
  529. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +0 -414
  530. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/openbase_adapter.rb +0 -350
  531. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb +0 -689
  532. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +0 -584
  533. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +0 -407
  534. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb +0 -591
  535. data/rails/vendor/rails/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb +0 -662
  536. data/rails/vendor/rails/activerecord/lib/active_record/deprecated_associations.rb +0 -104
  537. data/rails/vendor/rails/activerecord/lib/active_record/deprecated_finders.rb +0 -44
  538. data/rails/vendor/rails/activerecord/lib/active_record/fixtures.rb +0 -628
  539. data/rails/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb +0 -106
  540. data/rails/vendor/rails/activerecord/lib/active_record/locking/pessimistic.rb +0 -77
  541. data/rails/vendor/rails/activerecord/lib/active_record/migration.rb +0 -394
  542. data/rails/vendor/rails/activerecord/lib/active_record/observer.rb +0 -178
  543. data/rails/vendor/rails/activerecord/lib/active_record/query_cache.rb +0 -64
  544. data/rails/vendor/rails/activerecord/lib/active_record/reflection.rb +0 -222
  545. data/rails/vendor/rails/activerecord/lib/active_record/schema.rb +0 -58
  546. data/rails/vendor/rails/activerecord/lib/active_record/schema_dumper.rb +0 -149
  547. data/rails/vendor/rails/activerecord/lib/active_record/timestamp.rb +0 -51
  548. data/rails/vendor/rails/activerecord/lib/active_record/transactions.rb +0 -136
  549. data/rails/vendor/rails/activerecord/lib/active_record/validations.rb +0 -843
  550. data/rails/vendor/rails/activerecord/lib/active_record/vendor/db2.rb +0 -362
  551. data/rails/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb +0 -1214
  552. data/rails/vendor/rails/activerecord/lib/active_record/vendor/simple.rb +0 -693
  553. data/rails/vendor/rails/activerecord/lib/active_record/version.rb +0 -9
  554. data/rails/vendor/rails/activerecord/lib/active_record/wrappers/yaml_wrapper.rb +0 -15
  555. data/rails/vendor/rails/activerecord/lib/active_record/wrappings.rb +0 -58
  556. data/rails/vendor/rails/activerecord/lib/active_record/xml_serialization.rb +0 -308
  557. data/rails/vendor/rails/activerecord/test/aaa_create_tables_test.rb +0 -59
  558. data/rails/vendor/rails/activerecord/test/abstract_unit.rb +0 -77
  559. data/rails/vendor/rails/activerecord/test/active_schema_test_mysql.rb +0 -31
  560. data/rails/vendor/rails/activerecord/test/adapter_test.rb +0 -87
  561. data/rails/vendor/rails/activerecord/test/adapter_test_sqlserver.rb +0 -81
  562. data/rails/vendor/rails/activerecord/test/aggregations_test.rb +0 -95
  563. data/rails/vendor/rails/activerecord/test/all.sh +0 -8
  564. data/rails/vendor/rails/activerecord/test/ar_schema_test.rb +0 -33
  565. data/rails/vendor/rails/activerecord/test/association_inheritance_reload.rb +0 -14
  566. data/rails/vendor/rails/activerecord/test/associations/callbacks_test.rb +0 -126
  567. data/rails/vendor/rails/activerecord/test/associations/cascaded_eager_loading_test.rb +0 -138
  568. data/rails/vendor/rails/activerecord/test/associations/eager_test.rb +0 -393
  569. data/rails/vendor/rails/activerecord/test/associations/extension_test.rb +0 -42
  570. data/rails/vendor/rails/activerecord/test/associations/join_model_test.rb +0 -497
  571. data/rails/vendor/rails/activerecord/test/associations_test.rb +0 -1809
  572. data/rails/vendor/rails/activerecord/test/attribute_methods_test.rb +0 -49
  573. data/rails/vendor/rails/activerecord/test/base_test.rb +0 -1586
  574. data/rails/vendor/rails/activerecord/test/binary_test.rb +0 -37
  575. data/rails/vendor/rails/activerecord/test/calculations_test.rb +0 -219
  576. data/rails/vendor/rails/activerecord/test/callbacks_test.rb +0 -377
  577. data/rails/vendor/rails/activerecord/test/class_inheritable_attributes_test.rb +0 -32
  578. data/rails/vendor/rails/activerecord/test/column_alias_test.rb +0 -17
  579. data/rails/vendor/rails/activerecord/test/connection_test_firebird.rb +0 -8
  580. data/rails/vendor/rails/activerecord/test/connections/native_db2/connection.rb +0 -25
  581. data/rails/vendor/rails/activerecord/test/connections/native_firebird/connection.rb +0 -26
  582. data/rails/vendor/rails/activerecord/test/connections/native_frontbase/connection.rb +0 -27
  583. data/rails/vendor/rails/activerecord/test/connections/native_mysql/connection.rb +0 -24
  584. data/rails/vendor/rails/activerecord/test/connections/native_openbase/connection.rb +0 -21
  585. data/rails/vendor/rails/activerecord/test/connections/native_oracle/connection.rb +0 -27
  586. data/rails/vendor/rails/activerecord/test/connections/native_postgresql/connection.rb +0 -23
  587. data/rails/vendor/rails/activerecord/test/connections/native_sqlite/connection.rb +0 -34
  588. data/rails/vendor/rails/activerecord/test/connections/native_sqlite3/connection.rb +0 -34
  589. data/rails/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb +0 -18
  590. data/rails/vendor/rails/activerecord/test/connections/native_sqlserver/connection.rb +0 -23
  591. data/rails/vendor/rails/activerecord/test/connections/native_sqlserver_odbc/connection.rb +0 -25
  592. data/rails/vendor/rails/activerecord/test/connections/native_sybase/connection.rb +0 -23
  593. data/rails/vendor/rails/activerecord/test/copy_table_sqlite.rb +0 -64
  594. data/rails/vendor/rails/activerecord/test/datatype_test_postgresql.rb +0 -52
  595. data/rails/vendor/rails/activerecord/test/default_test_firebird.rb +0 -16
  596. data/rails/vendor/rails/activerecord/test/defaults_test.rb +0 -60
  597. data/rails/vendor/rails/activerecord/test/deprecated_associations_test.rb +0 -396
  598. data/rails/vendor/rails/activerecord/test/deprecated_finder_test.rb +0 -151
  599. data/rails/vendor/rails/activerecord/test/empty_date_time_test.rb +0 -25
  600. data/rails/vendor/rails/activerecord/test/finder_test.rb +0 -504
  601. data/rails/vendor/rails/activerecord/test/fixtures/accounts.yml +0 -28
  602. data/rails/vendor/rails/activerecord/test/fixtures/author.rb +0 -99
  603. data/rails/vendor/rails/activerecord/test/fixtures/author_favorites.yml +0 -4
  604. data/rails/vendor/rails/activerecord/test/fixtures/authors.yml +0 -7
  605. data/rails/vendor/rails/activerecord/test/fixtures/auto_id.rb +0 -4
  606. data/rails/vendor/rails/activerecord/test/fixtures/bad_fixtures/attr_with_numeric_first_char +0 -1
  607. data/rails/vendor/rails/activerecord/test/fixtures/bad_fixtures/attr_with_spaces +0 -1
  608. data/rails/vendor/rails/activerecord/test/fixtures/bad_fixtures/blank_line +0 -3
  609. data/rails/vendor/rails/activerecord/test/fixtures/bad_fixtures/duplicate_attributes +0 -3
  610. data/rails/vendor/rails/activerecord/test/fixtures/bad_fixtures/missing_value +0 -1
  611. data/rails/vendor/rails/activerecord/test/fixtures/binary.rb +0 -2
  612. data/rails/vendor/rails/activerecord/test/fixtures/categories.yml +0 -14
  613. data/rails/vendor/rails/activerecord/test/fixtures/categories/special_categories.yml +0 -9
  614. data/rails/vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml +0 -4
  615. data/rails/vendor/rails/activerecord/test/fixtures/categories_ordered.yml +0 -7
  616. data/rails/vendor/rails/activerecord/test/fixtures/categories_posts.yml +0 -23
  617. data/rails/vendor/rails/activerecord/test/fixtures/categorization.rb +0 -5
  618. data/rails/vendor/rails/activerecord/test/fixtures/categorizations.yml +0 -17
  619. data/rails/vendor/rails/activerecord/test/fixtures/category.rb +0 -20
  620. data/rails/vendor/rails/activerecord/test/fixtures/column_name.rb +0 -3
  621. data/rails/vendor/rails/activerecord/test/fixtures/comment.rb +0 -23
  622. data/rails/vendor/rails/activerecord/test/fixtures/comments.yml +0 -59
  623. data/rails/vendor/rails/activerecord/test/fixtures/companies.yml +0 -55
  624. data/rails/vendor/rails/activerecord/test/fixtures/company.rb +0 -107
  625. data/rails/vendor/rails/activerecord/test/fixtures/company_in_module.rb +0 -59
  626. data/rails/vendor/rails/activerecord/test/fixtures/computer.rb +0 -3
  627. data/rails/vendor/rails/activerecord/test/fixtures/computers.yml +0 -4
  628. data/rails/vendor/rails/activerecord/test/fixtures/course.rb +0 -3
  629. data/rails/vendor/rails/activerecord/test/fixtures/courses.yml +0 -7
  630. data/rails/vendor/rails/activerecord/test/fixtures/customer.rb +0 -55
  631. data/rails/vendor/rails/activerecord/test/fixtures/customers.yml +0 -17
  632. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/db2.drop.sql +0 -32
  633. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/db2.sql +0 -231
  634. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/db22.drop.sql +0 -2
  635. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/db22.sql +0 -5
  636. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/firebird.drop.sql +0 -63
  637. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/firebird.sql +0 -304
  638. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/firebird2.drop.sql +0 -2
  639. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/firebird2.sql +0 -6
  640. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase.drop.sql +0 -32
  641. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase.sql +0 -268
  642. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase2.drop.sql +0 -1
  643. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase2.sql +0 -4
  644. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/mysql.drop.sql +0 -32
  645. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/mysql.sql +0 -234
  646. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/mysql2.drop.sql +0 -2
  647. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/mysql2.sql +0 -5
  648. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/openbase.drop.sql +0 -2
  649. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/openbase.sql +0 -302
  650. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/openbase2.drop.sql +0 -2
  651. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/openbase2.sql +0 -7
  652. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/oracle.drop.sql +0 -65
  653. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/oracle.sql +0 -325
  654. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/oracle2.drop.sql +0 -2
  655. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/oracle2.sql +0 -6
  656. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql.drop.sql +0 -37
  657. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql.sql +0 -263
  658. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql2.drop.sql +0 -2
  659. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql2.sql +0 -5
  660. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/schema.rb +0 -60
  661. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite.drop.sql +0 -32
  662. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite.sql +0 -215
  663. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite2.drop.sql +0 -2
  664. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite2.sql +0 -5
  665. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver.drop.sql +0 -34
  666. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver.sql +0 -243
  667. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver2.drop.sql +0 -2
  668. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver2.sql +0 -5
  669. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sybase.drop.sql +0 -34
  670. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sybase.sql +0 -218
  671. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sybase2.drop.sql +0 -4
  672. data/rails/vendor/rails/activerecord/test/fixtures/db_definitions/sybase2.sql +0 -5
  673. data/rails/vendor/rails/activerecord/test/fixtures/default.rb +0 -2
  674. data/rails/vendor/rails/activerecord/test/fixtures/developer.rb +0 -52
  675. data/rails/vendor/rails/activerecord/test/fixtures/developers.yml +0 -21
  676. data/rails/vendor/rails/activerecord/test/fixtures/developers_projects.yml +0 -17
  677. data/rails/vendor/rails/activerecord/test/fixtures/developers_projects/david_action_controller +0 -3
  678. data/rails/vendor/rails/activerecord/test/fixtures/developers_projects/david_active_record +0 -3
  679. data/rails/vendor/rails/activerecord/test/fixtures/developers_projects/jamis_active_record +0 -2
  680. data/rails/vendor/rails/activerecord/test/fixtures/edge.rb +0 -5
  681. data/rails/vendor/rails/activerecord/test/fixtures/edges.yml +0 -6
  682. data/rails/vendor/rails/activerecord/test/fixtures/entrant.rb +0 -3
  683. data/rails/vendor/rails/activerecord/test/fixtures/entrants.yml +0 -14
  684. data/rails/vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml +0 -3
  685. data/rails/vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml +0 -2
  686. data/rails/vendor/rails/activerecord/test/fixtures/flowers.jpg +0 -0
  687. data/rails/vendor/rails/activerecord/test/fixtures/funny_jokes.yml +0 -10
  688. data/rails/vendor/rails/activerecord/test/fixtures/joke.rb +0 -6
  689. data/rails/vendor/rails/activerecord/test/fixtures/keyboard.rb +0 -3
  690. data/rails/vendor/rails/activerecord/test/fixtures/legacy_thing.rb +0 -3
  691. data/rails/vendor/rails/activerecord/test/fixtures/legacy_things.yml +0 -3
  692. data/rails/vendor/rails/activerecord/test/fixtures/migrations/1_people_have_last_names.rb +0 -9
  693. data/rails/vendor/rails/activerecord/test/fixtures/migrations/2_we_need_reminders.rb +0 -12
  694. data/rails/vendor/rails/activerecord/test/fixtures/migrations/3_innocent_jointable.rb +0 -12
  695. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb +0 -15
  696. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb +0 -9
  697. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb +0 -12
  698. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/3_foo.rb +0 -7
  699. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb +0 -12
  700. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb +0 -9
  701. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb +0 -9
  702. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb +0 -12
  703. data/rails/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb +0 -12
  704. data/rails/vendor/rails/activerecord/test/fixtures/mixed_case_monkey.rb +0 -3
  705. data/rails/vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml +0 -6
  706. data/rails/vendor/rails/activerecord/test/fixtures/mixin.rb +0 -63
  707. data/rails/vendor/rails/activerecord/test/fixtures/mixins.yml +0 -127
  708. data/rails/vendor/rails/activerecord/test/fixtures/movie.rb +0 -5
  709. data/rails/vendor/rails/activerecord/test/fixtures/movies.yml +0 -7
  710. data/rails/vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv +0 -1
  711. data/rails/vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml +0 -1
  712. data/rails/vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml +0 -1
  713. data/rails/vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml +0 -1
  714. data/rails/vendor/rails/activerecord/test/fixtures/order.rb +0 -4
  715. data/rails/vendor/rails/activerecord/test/fixtures/people.yml +0 -3
  716. data/rails/vendor/rails/activerecord/test/fixtures/person.rb +0 -4
  717. data/rails/vendor/rails/activerecord/test/fixtures/post.rb +0 -58
  718. data/rails/vendor/rails/activerecord/test/fixtures/posts.yml +0 -48
  719. data/rails/vendor/rails/activerecord/test/fixtures/project.rb +0 -27
  720. data/rails/vendor/rails/activerecord/test/fixtures/projects.yml +0 -7
  721. data/rails/vendor/rails/activerecord/test/fixtures/reader.rb +0 -4
  722. data/rails/vendor/rails/activerecord/test/fixtures/readers.yml +0 -4
  723. data/rails/vendor/rails/activerecord/test/fixtures/reply.rb +0 -37
  724. data/rails/vendor/rails/activerecord/test/fixtures/subject.rb +0 -4
  725. data/rails/vendor/rails/activerecord/test/fixtures/subscriber.rb +0 -6
  726. data/rails/vendor/rails/activerecord/test/fixtures/subscribers/first +0 -2
  727. data/rails/vendor/rails/activerecord/test/fixtures/subscribers/second +0 -2
  728. data/rails/vendor/rails/activerecord/test/fixtures/tag.rb +0 -7
  729. data/rails/vendor/rails/activerecord/test/fixtures/tagging.rb +0 -6
  730. data/rails/vendor/rails/activerecord/test/fixtures/taggings.yml +0 -18
  731. data/rails/vendor/rails/activerecord/test/fixtures/tags.yml +0 -7
  732. data/rails/vendor/rails/activerecord/test/fixtures/task.rb +0 -3
  733. data/rails/vendor/rails/activerecord/test/fixtures/tasks.yml +0 -7
  734. data/rails/vendor/rails/activerecord/test/fixtures/topic.rb +0 -25
  735. data/rails/vendor/rails/activerecord/test/fixtures/topics.yml +0 -22
  736. data/rails/vendor/rails/activerecord/test/fixtures/vertex.rb +0 -9
  737. data/rails/vendor/rails/activerecord/test/fixtures/vertices.yml +0 -4
  738. data/rails/vendor/rails/activerecord/test/fixtures_test.rb +0 -401
  739. data/rails/vendor/rails/activerecord/test/inheritance_test.rb +0 -205
  740. data/rails/vendor/rails/activerecord/test/lifecycle_test.rb +0 -137
  741. data/rails/vendor/rails/activerecord/test/locking_test.rb +0 -190
  742. data/rails/vendor/rails/activerecord/test/method_scoping_test.rb +0 -416
  743. data/rails/vendor/rails/activerecord/test/migration_test.rb +0 -768
  744. data/rails/vendor/rails/activerecord/test/migration_test_firebird.rb +0 -124
  745. data/rails/vendor/rails/activerecord/test/mixin_nested_set_test.rb +0 -196
  746. data/rails/vendor/rails/activerecord/test/mixin_test.rb +0 -550
  747. data/rails/vendor/rails/activerecord/test/modules_test.rb +0 -34
  748. data/rails/vendor/rails/activerecord/test/multiple_db_test.rb +0 -60
  749. data/rails/vendor/rails/activerecord/test/pk_test.rb +0 -104
  750. data/rails/vendor/rails/activerecord/test/readonly_test.rb +0 -107
  751. data/rails/vendor/rails/activerecord/test/reflection_test.rb +0 -159
  752. data/rails/vendor/rails/activerecord/test/schema_authorization_test_postgresql.rb +0 -75
  753. data/rails/vendor/rails/activerecord/test/schema_dumper_test.rb +0 -96
  754. data/rails/vendor/rails/activerecord/test/schema_test_postgresql.rb +0 -64
  755. data/rails/vendor/rails/activerecord/test/synonym_test_oracle.rb +0 -17
  756. data/rails/vendor/rails/activerecord/test/table_name_test_sqlserver.rb +0 -23
  757. data/rails/vendor/rails/activerecord/test/threaded_connections_test.rb +0 -48
  758. data/rails/vendor/rails/activerecord/test/transactions_test.rb +0 -230
  759. data/rails/vendor/rails/activerecord/test/unconnected_test.rb +0 -32
  760. data/rails/vendor/rails/activerecord/test/validations_test.rb +0 -1097
  761. data/rails/vendor/rails/activerecord/test/xml_serialization_test.rb +0 -125
  762. data/rails/vendor/rails/activesupport/CHANGELOG +0 -703
  763. data/rails/vendor/rails/activesupport/README +0 -43
  764. data/rails/vendor/rails/activesupport/lib/active_support.rb +0 -44
  765. data/rails/vendor/rails/activesupport/lib/active_support/binding_of_caller.rb +0 -84
  766. data/rails/vendor/rails/activesupport/lib/active_support/breakpoint.rb +0 -528
  767. data/rails/vendor/rails/activesupport/lib/active_support/caching_tools.rb +0 -62
  768. data/rails/vendor/rails/activesupport/lib/active_support/clean_logger.rb +0 -38
  769. data/rails/vendor/rails/activesupport/lib/active_support/core_ext.rb +0 -1
  770. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/array.rb +0 -7
  771. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/array/conversions.rb +0 -72
  772. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/array/grouping.rb +0 -55
  773. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb +0 -3
  774. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb +0 -7
  775. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/blank.rb +0 -50
  776. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb +0 -5
  777. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -14
  778. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/class.rb +0 -3
  779. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +0 -48
  780. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -140
  781. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/class/removal.rb +0 -24
  782. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/date.rb +0 -6
  783. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/date/conversions.rb +0 -39
  784. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/enumerable.rb +0 -62
  785. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/exception.rb +0 -33
  786. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/hash.rb +0 -13
  787. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb +0 -155
  788. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb +0 -11
  789. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +0 -88
  790. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/hash/keys.rb +0 -53
  791. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +0 -25
  792. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb +0 -7
  793. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb +0 -24
  794. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb +0 -21
  795. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb +0 -4
  796. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
  797. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +0 -15
  798. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb +0 -51
  799. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/kernel/requires.rb +0 -24
  800. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb +0 -38
  801. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/logger.rb +0 -16
  802. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module.rb +0 -7
  803. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb +0 -58
  804. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_internal.rb +0 -31
  805. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +0 -48
  806. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module/delegation.rb +0 -41
  807. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module/inclusion.rb +0 -11
  808. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module/introspection.rb +0 -21
  809. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb +0 -13
  810. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/name_error.rb +0 -17
  811. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb +0 -7
  812. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb +0 -44
  813. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/numeric/time.rb +0 -72
  814. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/object.rb +0 -2
  815. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb +0 -47
  816. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb +0 -34
  817. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb +0 -7
  818. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/pathname/clean_within.rb +0 -14
  819. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/proc.rb +0 -12
  820. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/range.rb +0 -5
  821. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/range/conversions.rb +0 -21
  822. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/string.rb +0 -15
  823. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/string/access.rb +0 -58
  824. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb +0 -19
  825. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb +0 -153
  826. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/string/iterators.rb +0 -17
  827. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +0 -20
  828. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb +0 -42
  829. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb +0 -12
  830. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/time.rb +0 -17
  831. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/time/calculations.rb +0 -191
  832. data/rails/vendor/rails/activesupport/lib/active_support/core_ext/time/conversions.rb +0 -33
  833. data/rails/vendor/rails/activesupport/lib/active_support/dependencies.rb +0 -539
  834. data/rails/vendor/rails/activesupport/lib/active_support/deprecation.rb +0 -202
  835. data/rails/vendor/rails/activesupport/lib/active_support/inflections.rb +0 -52
  836. data/rails/vendor/rails/activesupport/lib/active_support/inflector.rb +0 -275
  837. data/rails/vendor/rails/activesupport/lib/active_support/json.rb +0 -48
  838. data/rails/vendor/rails/activesupport/lib/active_support/json/encoders.rb +0 -25
  839. data/rails/vendor/rails/activesupport/lib/active_support/json/encoders/core.rb +0 -68
  840. data/rails/vendor/rails/activesupport/lib/active_support/multibyte.rb +0 -7
  841. data/rails/vendor/rails/activesupport/lib/active_support/multibyte/chars.rb +0 -129
  842. data/rails/vendor/rails/activesupport/lib/active_support/multibyte/generators/generate_tables.rb +0 -149
  843. data/rails/vendor/rails/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb +0 -9
  844. data/rails/vendor/rails/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb +0 -454
  845. data/rails/vendor/rails/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb +0 -43
  846. data/rails/vendor/rails/activesupport/lib/active_support/option_merger.rb +0 -25
  847. data/rails/vendor/rails/activesupport/lib/active_support/ordered_options.rb +0 -44
  848. data/rails/vendor/rails/activesupport/lib/active_support/reloadable.rb +0 -60
  849. data/rails/vendor/rails/activesupport/lib/active_support/values/time_zone.rb +0 -180
  850. data/rails/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
  851. data/rails/vendor/rails/activesupport/lib/active_support/vendor/builder.rb +0 -13
  852. data/rails/vendor/rails/activesupport/lib/active_support/vendor/builder/blankslate.rb +0 -63
  853. data/rails/vendor/rails/activesupport/lib/active_support/vendor/builder/xchar.rb +0 -112
  854. data/rails/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlbase.rb +0 -145
  855. data/rails/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlevents.rb +0 -63
  856. data/rails/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlmarkup.rb +0 -327
  857. data/rails/vendor/rails/activesupport/lib/active_support/vendor/xml_simple.rb +0 -1021
  858. data/rails/vendor/rails/activesupport/lib/active_support/version.rb +0 -9
  859. data/rails/vendor/rails/activesupport/lib/active_support/whiny_nil.rb +0 -38
  860. data/rails/vendor/rails/railties/CHANGELOG +0 -1366
  861. data/rails/vendor/rails/railties/MIT-LICENSE +0 -20
  862. data/rails/vendor/rails/railties/README +0 -182
  863. data/rails/vendor/rails/railties/Rakefile +0 -334
  864. data/rails/vendor/rails/railties/bin/about +0 -3
  865. data/rails/vendor/rails/railties/bin/breakpointer +0 -3
  866. data/rails/vendor/rails/railties/bin/console +0 -3
  867. data/rails/vendor/rails/railties/bin/destroy +0 -3
  868. data/rails/vendor/rails/railties/bin/generate +0 -3
  869. data/rails/vendor/rails/railties/bin/performance/benchmarker +0 -3
  870. data/rails/vendor/rails/railties/bin/performance/profiler +0 -3
  871. data/rails/vendor/rails/railties/bin/plugin +0 -3
  872. data/rails/vendor/rails/railties/bin/process/inspector +0 -3
  873. data/rails/vendor/rails/railties/bin/process/reaper +0 -3
  874. data/rails/vendor/rails/railties/bin/process/spawner +0 -3
  875. data/rails/vendor/rails/railties/bin/rails +0 -19
  876. data/rails/vendor/rails/railties/bin/runner +0 -3
  877. data/rails/vendor/rails/railties/bin/server +0 -3
  878. data/rails/vendor/rails/railties/builtin/rails_info/rails/info.rb +0 -123
  879. data/rails/vendor/rails/railties/builtin/rails_info/rails/info_controller.rb +0 -9
  880. data/rails/vendor/rails/railties/builtin/rails_info/rails/info_helper.rb +0 -2
  881. data/rails/vendor/rails/railties/builtin/rails_info/rails_info_controller.rb +0 -2
  882. data/rails/vendor/rails/railties/configs/apache.conf +0 -40
  883. data/rails/vendor/rails/railties/configs/databases/frontbase.yml +0 -28
  884. data/rails/vendor/rails/railties/configs/databases/mysql.yml +0 -48
  885. data/rails/vendor/rails/railties/configs/databases/oracle.yml +0 -39
  886. data/rails/vendor/rails/railties/configs/databases/postgresql.yml +0 -44
  887. data/rails/vendor/rails/railties/configs/databases/sqlite2.yml +0 -16
  888. data/rails/vendor/rails/railties/configs/databases/sqlite3.yml +0 -19
  889. data/rails/vendor/rails/railties/configs/empty.log +0 -0
  890. data/rails/vendor/rails/railties/configs/lighttpd.conf +0 -54
  891. data/rails/vendor/rails/railties/configs/routes.rb +0 -23
  892. data/rails/vendor/rails/railties/dispatches/dispatch.fcgi +0 -24
  893. data/rails/vendor/rails/railties/dispatches/dispatch.rb +0 -10
  894. data/rails/vendor/rails/railties/dispatches/gateway.cgi +0 -97
  895. data/rails/vendor/rails/railties/doc/README_FOR_APP +0 -2
  896. data/rails/vendor/rails/railties/environments/boot.rb +0 -45
  897. data/rails/vendor/rails/railties/environments/development.rb +0 -21
  898. data/rails/vendor/rails/railties/environments/environment.rb +0 -60
  899. data/rails/vendor/rails/railties/environments/production.rb +0 -18
  900. data/rails/vendor/rails/railties/environments/test.rb +0 -19
  901. data/rails/vendor/rails/railties/fresh_rakefile +0 -10
  902. data/rails/vendor/rails/railties/helpers/application.rb +0 -7
  903. data/rails/vendor/rails/railties/helpers/application_helper.rb +0 -3
  904. data/rails/vendor/rails/railties/helpers/test_helper.rb +0 -28
  905. data/rails/vendor/rails/railties/html/404.html +0 -30
  906. data/rails/vendor/rails/railties/html/500.html +0 -30
  907. data/rails/vendor/rails/railties/html/favicon.ico +0 -0
  908. data/rails/vendor/rails/railties/html/images/rails.png +0 -0
  909. data/rails/vendor/rails/railties/html/index.html +0 -277
  910. data/rails/vendor/rails/railties/html/javascripts/application.js +0 -2
  911. data/rails/vendor/rails/railties/html/javascripts/controls.js +0 -833
  912. data/rails/vendor/rails/railties/html/javascripts/dragdrop.js +0 -942
  913. data/rails/vendor/rails/railties/html/javascripts/effects.js +0 -1088
  914. data/rails/vendor/rails/railties/html/javascripts/prototype.js +0 -2515
  915. data/rails/vendor/rails/railties/html/robots.txt +0 -1
  916. data/rails/vendor/rails/railties/lib/binding_of_caller.rb +0 -85
  917. data/rails/vendor/rails/railties/lib/breakpoint.rb +0 -553
  918. data/rails/vendor/rails/railties/lib/breakpoint_client.rb +0 -196
  919. data/rails/vendor/rails/railties/lib/code_statistics.rb +0 -107
  920. data/rails/vendor/rails/railties/lib/commands.rb +0 -17
  921. data/rails/vendor/rails/railties/lib/commands/about.rb +0 -2
  922. data/rails/vendor/rails/railties/lib/commands/breakpointer.rb +0 -1
  923. data/rails/vendor/rails/railties/lib/commands/console.rb +0 -25
  924. data/rails/vendor/rails/railties/lib/commands/destroy.rb +0 -6
  925. data/rails/vendor/rails/railties/lib/commands/generate.rb +0 -6
  926. data/rails/vendor/rails/railties/lib/commands/ncgi/listener +0 -86
  927. data/rails/vendor/rails/railties/lib/commands/ncgi/tracker +0 -69
  928. data/rails/vendor/rails/railties/lib/commands/performance/benchmarker.rb +0 -24
  929. data/rails/vendor/rails/railties/lib/commands/performance/profiler.rb +0 -50
  930. data/rails/vendor/rails/railties/lib/commands/plugin.rb +0 -918
  931. data/rails/vendor/rails/railties/lib/commands/process/inspector.rb +0 -68
  932. data/rails/vendor/rails/railties/lib/commands/process/reaper.rb +0 -149
  933. data/rails/vendor/rails/railties/lib/commands/process/spawner.rb +0 -209
  934. data/rails/vendor/rails/railties/lib/commands/process/spinner.rb +0 -57
  935. data/rails/vendor/rails/railties/lib/commands/runner.rb +0 -48
  936. data/rails/vendor/rails/railties/lib/commands/server.rb +0 -39
  937. data/rails/vendor/rails/railties/lib/commands/servers/base.rb +0 -19
  938. data/rails/vendor/rails/railties/lib/commands/servers/lighttpd.rb +0 -94
  939. data/rails/vendor/rails/railties/lib/commands/servers/mongrel.rb +0 -65
  940. data/rails/vendor/rails/railties/lib/commands/servers/webrick.rb +0 -59
  941. data/rails/vendor/rails/railties/lib/commands/update.rb +0 -4
  942. data/rails/vendor/rails/railties/lib/console_app.rb +0 -27
  943. data/rails/vendor/rails/railties/lib/console_sandbox.rb +0 -6
  944. data/rails/vendor/rails/railties/lib/console_with_helpers.rb +0 -23
  945. data/rails/vendor/rails/railties/lib/dispatcher.rb +0 -173
  946. data/rails/vendor/rails/railties/lib/fcgi_handler.rb +0 -225
  947. data/rails/vendor/rails/railties/lib/initializer.rb +0 -702
  948. data/rails/vendor/rails/railties/lib/rails/version.rb +0 -9
  949. data/rails/vendor/rails/railties/lib/rails_generator.rb +0 -43
  950. data/rails/vendor/rails/railties/lib/rails_generator/base.rb +0 -261
  951. data/rails/vendor/rails/railties/lib/rails_generator/commands.rb +0 -581
  952. data/rails/vendor/rails/railties/lib/rails_generator/generated_attribute.rb +0 -42
  953. data/rails/vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE +0 -16
  954. data/rails/vendor/rails/railties/lib/rails_generator/generators/applications/app/app_generator.rb +0 -160
  955. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/controller/USAGE +0 -30
  956. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/controller/controller_generator.rb +0 -37
  957. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb +0 -10
  958. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb +0 -18
  959. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb +0 -2
  960. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.rhtml +0 -2
  961. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE +0 -14
  962. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/integration_test_generator.rb +0 -16
  963. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb +0 -10
  964. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/mailer/USAGE +0 -18
  965. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +0 -34
  966. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -3
  967. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb +0 -13
  968. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +0 -37
  969. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -3
  970. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/migration/USAGE +0 -14
  971. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/migration/migration_generator.rb +0 -7
  972. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/migration/templates/migration.rb +0 -7
  973. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/model/USAGE +0 -26
  974. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/model/model_generator.rb +0 -38
  975. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml +0 -11
  976. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/migration.rb +0 -13
  977. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb +0 -2
  978. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +0 -10
  979. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/observer/USAGE +0 -15
  980. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/observer/observer_generator.rb +0 -16
  981. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb +0 -2
  982. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb +0 -10
  983. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/USAGE +0 -35
  984. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +0 -38
  985. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README +0 -4
  986. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile +0 -22
  987. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE +0 -8
  988. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb +0 -8
  989. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/init.rb +0 -1
  990. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb +0 -1
  991. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb +0 -1
  992. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake +0 -4
  993. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb +0 -1
  994. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb +0 -8
  995. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/resource_generator.rb +0 -76
  996. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/USAGE +0 -18
  997. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb +0 -2
  998. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/fixtures.yml +0 -11
  999. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb +0 -20
  1000. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb +0 -2
  1001. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/migration.rb +0 -13
  1002. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/model.rb +0 -2
  1003. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/unit_test.rb +0 -10
  1004. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/USAGE +0 -32
  1005. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +0 -193
  1006. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb +0 -58
  1007. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/form.rhtml +0 -3
  1008. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml +0 -1
  1009. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +0 -102
  1010. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb +0 -2
  1011. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/layout.rhtml +0 -17
  1012. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/style.css +0 -74
  1013. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml +0 -9
  1014. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml +0 -27
  1015. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml +0 -8
  1016. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml +0 -8
  1017. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE +0 -29
  1018. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb +0 -92
  1019. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/controller.rb +0 -79
  1020. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml +0 -11
  1021. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/functional_test.rb +0 -57
  1022. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/helper.rb +0 -2
  1023. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/layout.rhtml +0 -17
  1024. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/migration.rb +0 -13
  1025. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/model.rb +0 -2
  1026. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/style.css +0 -74
  1027. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/unit_test.rb +0 -10
  1028. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_edit.rhtml +0 -19
  1029. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_index.rhtml +0 -24
  1030. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_new.rhtml +0 -18
  1031. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_show.rhtml +0 -10
  1032. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/USAGE +0 -15
  1033. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +0 -18
  1034. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +0 -16
  1035. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/web_service/USAGE +0 -28
  1036. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/api_definition.rb +0 -5
  1037. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/controller.rb +0 -8
  1038. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/functional_test.rb +0 -19
  1039. data/rails/vendor/rails/railties/lib/rails_generator/generators/components/web_service/web_service_generator.rb +0 -29
  1040. data/rails/vendor/rails/railties/lib/rails_generator/lookup.rb +0 -209
  1041. data/rails/vendor/rails/railties/lib/rails_generator/manifest.rb +0 -53
  1042. data/rails/vendor/rails/railties/lib/rails_generator/options.rb +0 -143
  1043. data/rails/vendor/rails/railties/lib/rails_generator/scripts.rb +0 -83
  1044. data/rails/vendor/rails/railties/lib/rails_generator/scripts/destroy.rb +0 -7
  1045. data/rails/vendor/rails/railties/lib/rails_generator/scripts/generate.rb +0 -7
  1046. data/rails/vendor/rails/railties/lib/rails_generator/scripts/update.rb +0 -12
  1047. data/rails/vendor/rails/railties/lib/rails_generator/simple_logger.rb +0 -46
  1048. data/rails/vendor/rails/railties/lib/rails_generator/spec.rb +0 -44
  1049. data/rails/vendor/rails/railties/lib/railties_path.rb +0 -1
  1050. data/rails/vendor/rails/railties/lib/ruby_version_check.rb +0 -17
  1051. data/rails/vendor/rails/railties/lib/rubyprof_ext.rb +0 -35
  1052. data/rails/vendor/rails/railties/lib/tasks/databases.rake +0 -187
  1053. data/rails/vendor/rails/railties/lib/tasks/documentation.rake +0 -82
  1054. data/rails/vendor/rails/railties/lib/tasks/framework.rake +0 -112
  1055. data/rails/vendor/rails/railties/lib/tasks/log.rake +0 -9
  1056. data/rails/vendor/rails/railties/lib/tasks/misc.rake +0 -4
  1057. data/rails/vendor/rails/railties/lib/tasks/pre_namespace_aliases.rake +0 -53
  1058. data/rails/vendor/rails/railties/lib/tasks/rails.rb +0 -8
  1059. data/rails/vendor/rails/railties/lib/tasks/statistics.rake +0 -18
  1060. data/rails/vendor/rails/railties/lib/tasks/testing.rake +0 -120
  1061. data/rails/vendor/rails/railties/lib/tasks/tmp.rake +0 -37
  1062. data/rails/vendor/rails/railties/lib/test_help.rb +0 -19
  1063. data/rails/vendor/rails/railties/lib/webrick_server.rb +0 -166
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'test/unit'
3
- $:.unshift(File.dirname(__FILE__) + '/../lib')
4
- args = Dir[File.join(File.dirname(__FILE__), '*_test.rb')] + Dir[File.join(File.dirname(__FILE__), 'ws/*_test.rb')]
5
- (r = Test::Unit::AutoRunner.new(true)).process_args(args)
6
- exit r.run
@@ -1,146 +0,0 @@
1
- require File.dirname(__FILE__) + '/abstract_unit'
2
-
3
- ActionController::Routing::Routes.draw do |map|
4
- map.connect '', :controller => 'scaffolded'
5
- map.connect ':controller/:action/:id'
6
- end
7
-
8
- ActionController::Base.template_root = '.'
9
-
10
- class ScaffoldPerson < ActionWebService::Struct
11
- member :id, :int
12
- member :name, :string
13
- member :birth, :date
14
-
15
- def ==(other)
16
- self.id == other.id && self.name == other.name
17
- end
18
- end
19
-
20
- class ScaffoldedControllerTestAPI < ActionWebService::API::Base
21
- api_method :hello, :expects => [{:integer=>:int}, :string], :returns => [:bool]
22
- api_method :hello_struct_param, :expects => [{:person => ScaffoldPerson}], :returns => [:bool]
23
- api_method :date_of_birth, :expects => [ScaffoldPerson], :returns => [:string]
24
- api_method :bye, :returns => [[ScaffoldPerson]]
25
- api_method :date_diff, :expects => [{:start_date => :date}, {:end_date => :date}], :returns => [:int]
26
- api_method :time_diff, :expects => [{:start_time => :time}, {:end_time => :time}], :returns => [:int]
27
- api_method :base64_upcase, :expects => [:base64], :returns => [:base64]
28
- end
29
-
30
- class ScaffoldedController < ActionController::Base
31
- web_service_api ScaffoldedControllerTestAPI
32
- web_service_scaffold :scaffold_invoke
33
-
34
- def hello(int, string)
35
- 0
36
- end
37
-
38
- def hello_struct_param(person)
39
- 0
40
- end
41
-
42
- def date_of_birth(person)
43
- person.birth.to_s
44
- end
45
-
46
- def bye
47
- [ScaffoldPerson.new(:id => 1, :name => "leon"), ScaffoldPerson.new(:id => 2, :name => "paul")]
48
- end
49
-
50
- def rescue_action(e)
51
- raise e
52
- end
53
-
54
- def date_diff(start_date, end_date)
55
- end_date - start_date
56
- end
57
-
58
- def time_diff(start_time, end_time)
59
- end_time - start_time
60
- end
61
-
62
- def base64_upcase(data)
63
- data.upcase
64
- end
65
- end
66
-
67
- class ScaffoldedControllerTest < Test::Unit::TestCase
68
- def setup
69
- @controller = ScaffoldedController.new
70
- @request = ActionController::TestRequest.new
71
- @response = ActionController::TestResponse.new
72
- end
73
-
74
- def test_scaffold_invoke
75
- get :scaffold_invoke
76
- assert_template 'methods.rhtml'
77
- end
78
-
79
- def test_scaffold_invoke_method_params
80
- get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'Hello'
81
- assert_template 'parameters.rhtml'
82
- end
83
-
84
- def test_scaffold_invoke_method_params_with_struct
85
- get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'HelloStructParam'
86
- assert_template 'parameters.rhtml'
87
- assert_tag :tag => 'form'
88
- assert_tag :tag => 'input', :attributes => {:name => "method_params[0][name]"}
89
- end
90
-
91
- def test_scaffold_invoke_submit_hello
92
- post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'Hello', :method_params => {'0' => '5', '1' => 'hello world'}
93
- assert_template 'result.rhtml'
94
- assert_equal false, @controller.instance_eval{ @method_return_value }
95
- end
96
-
97
- def test_scaffold_invoke_submit_bye
98
- post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'Bye'
99
- assert_template 'result.rhtml'
100
- persons = [ScaffoldPerson.new(:id => 1, :name => "leon"), ScaffoldPerson.new(:id => 2, :name => "paul")]
101
- assert_equal persons, @controller.instance_eval{ @method_return_value }
102
- end
103
-
104
- def test_scaffold_date_params
105
- get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'DateDiff'
106
- (0..1).each do |param|
107
- (1..3).each do |date_part|
108
- assert_tag :tag => 'select', :attributes => {:name => "method_params[#{param}][#{date_part}]"},
109
- :children => {:greater_than => 1, :only => {:tag => 'option'}}
110
- end
111
- end
112
-
113
- post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'DateDiff',
114
- :method_params => {'0' => {'1' => '2006', '2' => '2', '3' => '1'}, '1' => {'1' => '2006', '2' => '2', '3' => '2'}}
115
- assert_equal 1, @controller.instance_eval{ @method_return_value }
116
- end
117
-
118
- def test_scaffold_struct_date_params
119
- post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'DateOfBirth',
120
- :method_params => {'0' => {'birth' => {'1' => '2006', '2' => '2', '3' => '1'}, 'id' => '1', 'name' => 'person'}}
121
- assert_equal '2006-02-01', @controller.instance_eval{ @method_return_value }
122
- end
123
-
124
- def test_scaffold_time_params
125
- get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'TimeDiff'
126
- (0..1).each do |param|
127
- (1..6).each do |date_part|
128
- assert_tag :tag => 'select', :attributes => {:name => "method_params[#{param}][#{date_part}]"},
129
- :children => {:greater_than => 1, :only => {:tag => 'option'}}
130
- end
131
- end
132
-
133
- post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'TimeDiff',
134
- :method_params => {'0' => {'1' => '2006', '2' => '2', '3' => '1', '4' => '1', '5' => '1', '6' => '1'},
135
- '1' => {'1' => '2006', '2' => '2', '3' => '2', '4' => '1', '5' => '1', '6' => '1'}}
136
- assert_equal 86400, @controller.instance_eval{ @method_return_value }
137
- end
138
-
139
- def test_scaffold_base64
140
- get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'Base64Upcase'
141
- assert_tag :tag => 'textarea', :attributes => {:name => 'method_params[0]'}
142
-
143
- post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'Base64Upcase', :method_params => {'0' => 'scaffold'}
144
- assert_equal 'SCAFFOLD', @controller.instance_eval{ @method_return_value }
145
- end
146
- end
@@ -1,52 +0,0 @@
1
- require File.dirname(__FILE__) + '/abstract_unit'
2
-
3
- module StructTest
4
- class Struct < ActionWebService::Struct
5
- member :id, Integer
6
- member :name, String
7
- member :items, [String]
8
- member :deleted, :bool
9
- member :emails, [:string]
10
- end
11
- end
12
-
13
- class TC_Struct < Test::Unit::TestCase
14
- include StructTest
15
-
16
- def setup
17
- @struct = Struct.new(:id => 5,
18
- :name => 'hello',
19
- :items => ['one', 'two'],
20
- :deleted => true,
21
- :emails => ['test@test.com'])
22
- end
23
-
24
- def test_members
25
- assert_equal(5, Struct.members.size)
26
- assert_equal(Integer, Struct.members[:id].type_class)
27
- assert_equal(String, Struct.members[:name].type_class)
28
- assert_equal(String, Struct.members[:items].element_type.type_class)
29
- assert_equal(TrueClass, Struct.members[:deleted].type_class)
30
- assert_equal(String, Struct.members[:emails].element_type.type_class)
31
- end
32
-
33
- def test_initializer_and_lookup
34
- assert_equal(5, @struct.id)
35
- assert_equal('hello', @struct.name)
36
- assert_equal(['one', 'two'], @struct.items)
37
- assert_equal(true, @struct.deleted)
38
- assert_equal(['test@test.com'], @struct.emails)
39
- assert_equal(5, @struct['id'])
40
- assert_equal('hello', @struct['name'])
41
- assert_equal(['one', 'two'], @struct['items'])
42
- assert_equal(true, @struct['deleted'])
43
- assert_equal(['test@test.com'], @struct['emails'])
44
- end
45
-
46
- def test_each_pair
47
- @struct.each_pair do |name, value|
48
- assert_equal @struct.__send__(name), value
49
- assert_equal @struct[name], value
50
- end
51
- end
52
- end
@@ -1,112 +0,0 @@
1
- require File.dirname(__FILE__) + '/abstract_unit'
2
- require 'action_web_service/test_invoke'
3
-
4
- class TestInvokeAPI < ActionWebService::API::Base
5
- api_method :null
6
- api_method :add, :expects => [:int, :int], :returns => [:int]
7
- end
8
-
9
- class TestInvokeService < ActionWebService::Base
10
- web_service_api TestInvokeAPI
11
-
12
- attr :invoked
13
-
14
- def add(a, b)
15
- @invoked = true
16
- a + b
17
- end
18
-
19
- def null
20
- end
21
- end
22
-
23
- class TestController < ActionController::Base
24
- def rescue_action(e); raise e; end
25
- end
26
-
27
- class TestInvokeDirectController < TestController
28
- web_service_api TestInvokeAPI
29
-
30
- attr :invoked
31
-
32
- def add
33
- @invoked = true
34
- @method_params[0] + @method_params[1]
35
- end
36
-
37
- def null
38
- end
39
- end
40
-
41
- class TestInvokeDelegatedController < TestController
42
- web_service_dispatching_mode :delegated
43
- web_service :service, TestInvokeService.new
44
- end
45
-
46
- class TestInvokeLayeredController < TestController
47
- web_service_dispatching_mode :layered
48
- web_service(:one) { @service_one ||= TestInvokeService.new }
49
- web_service(:two) { @service_two ||= TestInvokeService.new }
50
- end
51
-
52
- class TestInvokeTest < Test::Unit::TestCase
53
- def setup
54
- @request = ActionController::TestRequest.new
55
- @response = ActionController::TestResponse.new
56
- end
57
-
58
- def test_direct_add
59
- @controller = TestInvokeDirectController.new
60
- assert_equal nil, @controller.invoked
61
- result = invoke :add, 25, 25
62
- assert_equal 50, result
63
- assert_equal true, @controller.invoked
64
- end
65
-
66
- def test_delegated_add
67
- @controller = TestInvokeDelegatedController.new
68
- assert_equal nil, @controller.web_service_object(:service).invoked
69
- result = invoke_delegated :service, :add, 100, 50
70
- assert_equal 150, result
71
- assert_equal true, @controller.web_service_object(:service).invoked
72
- end
73
-
74
- def test_layered_add
75
- [:soap, :xmlrpc].each do |protocol|
76
- @protocol = protocol
77
- [:one, :two].each do |service|
78
- @controller = TestInvokeLayeredController.new
79
- assert_equal nil, @controller.web_service_object(service).invoked
80
- result = invoke_layered service, :add, 200, -50
81
- assert_equal 150, result
82
- assert_equal true, @controller.web_service_object(service).invoked
83
- end
84
- end
85
- end
86
-
87
- def test_layered_fail_with_wrong_number_of_arguments
88
- [:soap, :xmlrpc].each do |protocol|
89
- @protocol = protocol
90
- [:one, :two].each do |service|
91
- @controller = TestInvokeLayeredController.new
92
- assert_raise(ArgumentError) { invoke_layered service, :add, 1 }
93
- end
94
- end
95
- end
96
-
97
- def test_delegated_fail_with_wrong_number_of_arguments
98
- @controller = TestInvokeDelegatedController.new
99
- assert_raise(ArgumentError) { invoke_delegated :service, :add, 1 }
100
- end
101
-
102
- def test_direct_fail_with_wrong_number_of_arguments
103
- @controller = TestInvokeDirectController.new
104
- assert_raise(ArgumentError) { invoke :add, 1 }
105
- end
106
-
107
- def test_with_no_parameters_declared
108
- @controller = TestInvokeDirectController.new
109
- assert_nil invoke(:null)
110
- end
111
-
112
- end
@@ -1,3043 +0,0 @@
1
- *1.15.3* (March 12th, 2007)
2
-
3
- * Allow a polymorphic :source for has_many :through associations. Closes #7143 [protocool]
4
-
5
- * Consistently quote primary key column names. #7763 [toolmantim]
6
-
7
- * Fixtures: fix YAML ordered map support. #2665 [Manuel Holtgrewe, nfbuckley]
8
-
9
- * Fix has_many :through << with custom foreign keys. #6466, #7153 [naffis, Rich Collins]
10
-
11
-
12
- *1.15.2* (February 5th, 2007)
13
-
14
- * Pass a range in :conditions to use the SQL BETWEEN operator. #6974 [dcmanges]
15
- Student.find(:all, :conditions => { :grade => 9..12 })
16
-
17
- * Don't create instance writer methods for class attributes. [Rick]
18
-
19
- * When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. [Jamis Buck]
20
-
21
- * SQLServer: don't choke on strings containing 'null'. #7083 [Jakob S]
22
-
23
- * Consistently use LOWER() for uniqueness validations (rather than mixing with UPPER()) so the database can always use a functional index on the lowercased column. #6495 [Si]
24
-
25
- * MySQL: SET SQL_AUTO_IS_NULL=0 so 'where id is null' doesn't select the last inserted id. #6778 [Jonathan Viney, timc]
26
-
27
- * Fixtures use the table name and connection from set_fixture_class. #7330 [Anthony Eden]
28
-
29
- * SQLServer: quote table name in indexes query. #2928 [keithm@infused.org]
30
-
31
-
32
- *1.15.1* (January 17th, 2007)
33
-
34
- * Fix nodoc breaking of adapters
35
-
36
-
37
- *1.15.0* (January 16th, 2007)
38
-
39
- * [DOC] clear up some ambiguity with the way has_and_belongs_to_many creates the default join table name. #7072 [jeremymcanally]
40
-
41
- * change_column accepts :default => nil. Skip column options for primary keys. #6956, #7048 [dcmanges, Jeremy Kemper]
42
-
43
- * MySQL, PostgreSQL: change_column_default quotes the default value and doesn't lose column type information. #3987, #6664 [Jonathan Viney, manfred, altano@bigfoot.com]
44
-
45
- * Oracle: create_table takes a :sequence_name option to override the 'tablename_seq' default. #7000 [Michael Schoen]
46
-
47
- * MySQL: retain SSL settings on reconnect. #6976 [randyv2]
48
-
49
- * SQLServer: handle [quoted] table names. #6635 [rrich]
50
-
51
- * acts_as_nested_set works with single-table inheritance. #6030 [Josh Susser]
52
-
53
- * PostgreSQL, Oracle: correctly perform eager finds with :limit and :order. #4668, #7021 [eventualbuddha, Michael Schoen]
54
-
55
- * Fix the Oracle adapter for serialized attributes stored in CLOBs. Closes #6825 [mschoen, tdfowler]
56
-
57
- * [DOCS] Apply more documentation for ActiveRecord Reflection. Closes #4055 [Robby Russell]
58
-
59
- * [DOCS] Document :allow_nil option of #validate_uniqueness_of. Closes #3143 [Caio Chassot]
60
-
61
- * Bring the sybase adapter up to scratch for 1.2 release. [jsheets]
62
-
63
- * Oracle: fix connection reset failure. #6846 [leonlleslie]
64
-
65
- * Subclass instantiation doesn't try to explicitly require the corresponding subclass. #6840 [leei, Jeremy Kemper]
66
-
67
- * fix faulty inheritance tests and that eager loading grabs the wrong inheritance column when the class of your association is an STI subclass. Closes #6859 [protocool]
68
-
69
- * find supports :lock with :include. Check whether your database allows SELECT ... FOR UPDATE with outer joins before using. #6764 [vitaly, Jeremy Kemper]
70
-
71
- * Support nil and Array in :conditions => { attr => value } hashes. #6548 [Assaf, Jeremy Kemper]
72
- find(:all, :conditions => { :topic_id => [1, 2, 3], :last_read => nil }
73
-
74
- * Quote ActiveSupport::Multibyte::Chars. #6653 [Julian Tarkhanov]
75
-
76
- * MySQL: detect when a NOT NULL column without a default value is misreported as default ''. Can't detect for string, text, and binary columns since '' is a legitimate default. #6156 [simon@redhillconsulting.com.au, obrie, Jonathan Viney, Jeremy Kemper]
77
-
78
- * validates_numericality_of uses \A \Z to ensure the entire string matches rather than ^ $ which may match one valid line of a multiline string. #5716 [Andreas Schwarz]
79
-
80
- * Oracle: automatically detect the primary key. #6594 [vesaria, Michael Schoen]
81
-
82
- * Oracle: to increase performance, prefetch 100 rows and enable similar cursor sharing. Both are configurable in database.yml. #6607 [philbogle@gmail.com, ray.fortna@jobster.com, Michael Schoen]
83
-
84
- * Firebird: decimal/numeric support. #6408 [macrnic]
85
-
86
- * Find with :include respects scoped :order. #5850
87
-
88
- * Dynamically generate reader methods for serialized attributes. #6362 [Stefan Kaes]
89
-
90
- * Deprecation: object transactions warning. [Jeremy Kemper]
91
-
92
- * has_one :dependent => :nullify ignores nil associates. #6528 [janovetz, Jeremy Kemper]
93
-
94
- * Oracle: resolve test failures, use prefetched primary key for inserts, check for null defaults, fix limited id selection for eager loading. Factor out some common methods from all adapters. #6515 [Michael Schoen]
95
-
96
- * Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
97
-
98
- * Document other options available to migration's add_column. #6419 [grg]
99
-
100
- * MySQL: all_hashes compatibility with old MysqlRes class. #6429, #6601 [Jeremy Kemper]
101
-
102
- * Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783. [Jonathan Viney]
103
-
104
- * fix select_limited_ids_list issues in postgresql, retain current behavior in other adapters [Rick]
105
-
106
- * Restore eager condition interpolation, document it's differences [Rick]
107
-
108
- * Don't rollback in teardown unless a transaction was started. Don't start a transaction in create_fixtures if a transaction is started. #6282 [Jacob Fugal, Jeremy Kemper]
109
-
110
- * Add #delete support to has_many :through associations. Closes #6049 [Martin Landers]
111
-
112
- * Reverted old select_limited_ids_list postgresql fix that caused issues in mysql. Closes #5851 [Rick]
113
-
114
- * Removes the ability for eager loaded conditions to be interpolated, since there is no model instance to use as a context for interpolation. #5553 [turnip@turnipspatch.com]
115
-
116
- * Added timeout option to SQLite3 configurations to deal more gracefully with SQLite3::BusyException, now the connection can instead retry for x seconds to see if the db clears up before throwing that exception #6126 [wreese@gmail.com]
117
-
118
- * Added update_attributes! which uses save! to raise an exception if a validation error prevents saving #6192 [jonathan]
119
-
120
- * Deprecated add_on_boundary_breaking (use validates_length_of instead) #6292 [BobSilva]
121
-
122
- * The has_many create method works with polymorphic associations. #6361 [Dan Peterson]
123
-
124
- * MySQL: introduce Mysql::Result#all_hashes to support further optimization. #5581 [Stefan Kaes]
125
-
126
- * save! shouldn't validate twice. #6324 [maiha, Bob Silva]
127
-
128
- * Association collections have an _ids reader method to match the existing writer for collection_select convenience (e.g. employee.task_ids). The writer method skips blank ids so you can safely do @employee.task_ids = params[:tasks] without checking every time for an empty list or blank values. #1887, #5780 [Michael Schuerig]
129
-
130
- * Add an attribute reader method for ActiveRecord::Base.observers [Rick Olson]
131
-
132
- * Deprecation: count class method should be called with an options hash rather than two args for conditions and joins. #6287 [Bob Silva]
133
-
134
- * has_one associations with a nil target may be safely marshaled. #6279 [norbauer, Jeremy Kemper]
135
-
136
- * Duplicate the hash provided to AR::Base#to_xml to prevent unexpected side effects [Koz]
137
-
138
- * Add a :namespace option to AR::Base#to_xml [Koz]
139
-
140
- * Deprecation tests. Remove warnings for dynamic finders and for the foo_count method if it's also an attribute. [Jeremy Kemper]
141
-
142
- * Mock Time.now for more accurate Touch mixin tests. #6213 [Dan Peterson]
143
-
144
- * Improve yaml fixtures error reporting. #6205 [Bruce Williams]
145
-
146
- * Rename AR::Base#quote so people can use that name in their models. #3628 [Koz]
147
-
148
- * Add deprecation warning for inferred foreign key. #6029 [Josh Susser]
149
-
150
- * Fixed the Ruby/MySQL adapter we ship with Active Record to work with the new authentication handshake that was introduced in MySQL 4.1, along with the other protocol changes made at that time #5723 [jimw@mysql.com]
151
-
152
- * Deprecation: use :dependent => :delete_all rather than :exclusively_dependent => true. #6024 [Josh Susser]
153
-
154
- * Optimistic locking: gracefully handle nil versions, treat as zero. #5908 [Tom Ward]
155
-
156
- * to_xml: the :methods option works on arrays of records. #5845 [Josh Starcher]
157
-
158
- * has_many :through conditions are sanitized by the associating class. #5971 [martin.emde@gmail.com]
159
-
160
- * Fix spurious newlines and spaces in AR::Base#to_xml output [Jamis Buck]
161
-
162
- * has_one supports the :dependent => :delete option which skips the typical callback chain and deletes the associated object directly from the database. #5927 [Chris Mear, Jonathan Viney]
163
-
164
- * Nested subclasses are not prefixed with the parent class' table_name since they should always use the base class' table_name. #5911 [Jonathan Viney]
165
-
166
- * SQLServer: work around bug where some unambiguous date formats are not correctly identified if the session language is set to german. #5894 [Tom Ward, kruth@bfpi]
167
-
168
- * Clashing type columns due to a sloppy join shouldn't wreck single-table inheritance. #5838 [Kevin Clark]
169
-
170
- * Fixtures: correct escaping of \n and \r. #5859 [evgeny.zislis@gmail.com]
171
-
172
- * Migrations: gracefully handle missing migration files. #5857 [eli.gordon@gmail.com]
173
-
174
- * MySQL: update test schema for MySQL 5 strict mode. #5861 [Tom Ward]
175
-
176
- * to_xml: correct naming of included associations. #5831 [josh.starcher@gmail.com]
177
-
178
- * Pushing a record onto a has_many :through sets the association's foreign key to the associate's primary key and adds it to the correct association. #5815, #5829 [josh@hasmanythrough.com]
179
-
180
- * Add records to has_many :through using <<, push, and concat by creating the association record. Raise if base or associate are new records since both ids are required to create the association. #build raises since you can't associate an unsaved record. #create! takes an attributes hash and creates the associated record and its association in a transaction. [Jeremy Kemper]
181
-
182
- # Create a tagging to associate the post and tag.
183
- post.tags << Tag.find_by_name('old')
184
- post.tags.create! :name => 'general'
185
-
186
- # Would have been:
187
- post.taggings.create!(:tag => Tag.find_by_name('finally')
188
- transaction do
189
- post.taggings.create!(:tag => Tag.create!(:name => 'general'))
190
- end
191
-
192
- * Cache nil results for :included has_one associations also. #5787 [Michael Schoen]
193
-
194
- * Fixed a bug which would cause .save to fail after trying to access a empty has_one association on a unsaved record. [Tobias Luetke]
195
-
196
- * Nested classes are given table names prefixed by the singular form of the parent's table name. [Jeremy Kemper]
197
- Example: Invoice::Lineitem is given table name invoice_lineitems
198
-
199
- * Migrations: uniquely name multicolumn indexes so you don't have to. [Jeremy Kemper]
200
- # people_active_last_name_index, people_active_deactivated_at_index
201
- add_index :people, [:active, :last_name]
202
- add_index :people, [:active, :deactivated_at]
203
- remove_index :people, [:active, :last_name]
204
- remove_index :people, [:active, :deactivated_at]
205
-
206
- WARNING: backward-incompatibility. Multicolumn indexes created before this
207
- revision were named using the first column name only. Now they're uniquely
208
- named using all indexed columns.
209
-
210
- To remove an old multicolumn index, remove_index :table_name, :first_column
211
-
212
- * Fix for deep includes on the same association. [richcollins@gmail.com]
213
-
214
- * Tweak fixtures so they don't try to use a non-ActiveRecord class. [Kevin Clark]
215
-
216
- * Remove ActiveRecord::Base.reset since Dispatcher doesn't use it anymore. [Rick Olson]
217
-
218
- * PostgreSQL: autodetected sequences work correctly with multiple schemas. Rely on the schema search_path instead of explicitly qualifying the sequence name with its schema. #5280 [guy.naor@famundo.com]
219
-
220
- * Replace Reloadable with Reloadable::Deprecated. [Nicholas Seckar]
221
-
222
- * Cache nil results for has_one associations so multiple calls don't call the database. Closes #5757. [Michael A. Schoen]
223
-
224
- * Don't save has_one associations unnecessarily. #5735 [Jonathan Viney]
225
-
226
- * Refactor ActiveRecord::Base.reset_subclasses to #reset, and add global observer resetting. [Rick Olson]
227
-
228
- * Formally deprecate the deprecated finders. [Koz]
229
-
230
- * Formally deprecate rich associations. [Koz]
231
-
232
- * Fixed that default timezones for new / initialize should uphold utc setting #5709 [daniluk@yahoo.com]
233
-
234
- * Fix announcement of very long migration names. #5722 [blake@near-time.com]
235
-
236
- * The exists? class method should treat a string argument as an id rather than as conditions. #5698 [jeremy@planetargon.com]
237
-
238
- * Fixed to_xml with :include misbehaviors when invoked on array of model instances #5690 [alexkwolfe@gmail.com]
239
-
240
- * Added support for conditions on Base.exists? #5689 [josh@joshpeek.com]. Examples:
241
-
242
- assert (Topic.exists?(:author_name => "David"))
243
- assert (Topic.exists?(:author_name => "Mary", :approved => true))
244
- assert (Topic.exists?(["parent_id = ?", 1]))
245
-
246
- * Schema dumper quotes date :default values. [Dave Thomas]
247
-
248
- * Calculate sum with SQL, not Enumerable on HasManyThrough Associations. [Dan Peterson]
249
-
250
- * Factor the attribute#{suffix} methods out of method_missing for easier extension. [Jeremy Kemper]
251
-
252
- * Patch sql injection vulnerability when using integer or float columns. [Jamis Buck]
253
-
254
- * Allow #count through a has_many association to accept :include. [Dan Peterson]
255
-
256
- * create_table rdoc: suggest :id => false for habtm join tables. [Zed Shaw]
257
-
258
- * PostgreSQL: return array fields as strings. #4664 [Robby Russell]
259
-
260
- * SQLServer: added tests to ensure all database statements are closed, refactored identity_insert management code to use blocks, removed update/delete rowcount code out of execute and into update/delete, changed insert to go through execute method, removed unused quoting methods, disabled pessimistic locking tests as feature is currently unsupported, fixed RakeFile to load sqlserver specific tests whether running in ado or odbc mode, fixed support for recently added decimal types, added support for limits on integer types. #5670 [Tom Ward]
261
-
262
- * SQLServer: fix db:schema:dump case-sensitivity. #4684 [Will Rogers]
263
-
264
- * Oracle: BigDecimal support. #5667 [schoenm@earthlink.net]
265
-
266
- * Numeric and decimal columns map to BigDecimal instead of Float. Those with scale 0 map to Integer. #5454 [robbat2@gentoo.org, work@ashleymoran.me.uk]
267
-
268
- * Firebird migrations support. #5337 [Ken Kunz <kennethkunz@gmail.com>]
269
-
270
- * PostgreSQL: create/drop as postgres user. #4790 [mail@matthewpainter.co.uk, mlaster@metavillage.com]
271
-
272
- * PostgreSQL: correctly quote the ' in pk_and_sequence_for. #5462 [tietew@tietew.net]
273
-
274
- * PostgreSQL: correctly quote microseconds in timestamps. #5641 [rick@rickbradley.com]
275
-
276
- * Clearer has_one/belongs_to model names (account has_one :user). #5632 [matt@mattmargolis.net]
277
-
278
- * Oracle: use nonblocking queries if allow_concurrency is set, fix pessimistic locking, don't guess date vs. time by default (set OracleAdapter.emulate_dates = true for the old behavior), adapter cleanup. #5635 [schoenm@earthlink.net]
279
-
280
- * Fixed a few Oracle issues: Allows Oracle's odd date handling to still work consistently within #to_xml, Passes test that hardcode insert statement by dropping the :id column, Updated RUNNING_UNIT_TESTS with Oracle instructions, Corrects method signature for #exec #5294 [schoenm@earthlink.net]
281
-
282
- * Added :group to available options for finds done on associations #5516 [mike@michaeldewey.org]
283
-
284
- * Observers also watch subclasses created after they are declared. #5535 [daniels@pronto.com.au]
285
-
286
- * Removed deprecated timestamps_gmt class methods. [Jeremy Kemper]
287
-
288
- * rake build_mysql_database grants permissions to rails@localhost. #5501 [brianegge@yahoo.com]
289
-
290
- * PostgreSQL: support microsecond time resolution. #5492 [alex@msgpad.com]
291
-
292
- * Add AssociationCollection#sum since the method_missing invokation has been shadowed by Enumerable#sum.
293
-
294
- * Added find_or_initialize_by_X which works like find_or_create_by_X but doesn't save the newly instantiated record. [Sam Stephenson]
295
-
296
- * Row locking. Provide a locking clause with the :lock finder option or true for the default "FOR UPDATE". Use the #lock! method to obtain a row lock on a single record (reloads the record with :lock => true). [Shugo Maeda]
297
- # Obtain an exclusive lock on person 1 so we can safely increment visits.
298
- Person.transaction do
299
- # select * from people where id=1 for update
300
- person = Person.find(1, :lock => true)
301
- person.visits += 1
302
- person.save!
303
- end
304
-
305
- * PostgreSQL: introduce allow_concurrency option which determines whether to use blocking or asynchronous #execute. Adapters with blocking #execute will deadlock Ruby threads. The default value is ActiveRecord::Base.allow_concurrency. [Jeremy Kemper]
306
-
307
- * Use a per-thread (rather than global) transaction mutex so you may execute concurrent transactions on separate connections. [Jeremy Kemper]
308
-
309
- * Change AR::Base#to_param to return a String instead of a Fixnum. Closes #5320. [Nicholas Seckar]
310
-
311
- * Use explicit delegation instead of method aliasing for AR::Base.to_param -> AR::Base.id. #5299 (skaes@web.de)
312
-
313
- * Refactored ActiveRecord::Base.to_xml to become a delegate for XmlSerializer, which restores sanity to the mega method. This refactoring also reinstates the opinions that type="string" is redundant and ugly and nil-differentiation is not a concern of serialization [DHH]
314
-
315
- * Added simple hash conditions to find that'll just convert hash to an AND-based condition string #5143 [hcatlin@gmail.com]. Example:
316
-
317
- Person.find(:all, :conditions => { :last_name => "Catlin", :status => 1 }, :limit => 2)
318
-
319
- ...is the same as:
320
-
321
- Person.find(:all, :conditions => [ "last_name = ? and status = ?", "Catlin", 1 ], :limit => 2)
322
-
323
- This makes it easier to pass in the options from a form or otherwise outside.
324
-
325
-
326
- * Fixed issues with BLOB limits, charsets, and booleans for Firebird #5194, #5191, #5189 [kennethkunz@gmail.com]
327
-
328
- * Fixed usage of :limit and with_scope when the association in scope is a 1:m #5208 [alex@purefiction.net]
329
-
330
- * Fixed migration trouble with SQLite when NOT NULL is used in the new definition #5215 [greg@lapcominc.com]
331
-
332
- * Fixed problems with eager loading and counting on SQL Server #5212 [kajism@yahoo.com]
333
-
334
- * Fixed that count distinct should use the selected column even when using :include #5251 [anna@wota.jp]
335
-
336
- * Fixed that :includes merged from with_scope won't cause the same association to be loaded more than once if repetition occurs in the clauses #5253 [alex@purefiction.net]
337
-
338
- * Allow models to override to_xml. #4989 [Blair Zajac <blair@orcaware.com>]
339
-
340
- * PostgreSQL: don't ignore port when host is nil since it's often used to label the domain socket. #5247 [shimbo@is.naist.jp]
341
-
342
- * Records and arrays of records are bound as quoted ids. [Jeremy Kemper]
343
- Foo.find(:all, :conditions => ['bar_id IN (?)', bars])
344
- Foo.find(:first, :conditions => ['bar_id = ?', bar])
345
-
346
- * Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would fail if collection was empty [DHH]
347
-
348
- * Add a list of regexes assert_queries skips in the ActiveRecord test suite. [Rick]
349
-
350
- * Fix the has_and_belongs_to_many #create doesn't populate the join for new records. Closes #3692 [josh@hasmanythrough.com]
351
-
352
- * Provide Association Extensions access to the instance that the association is being accessed from.
353
- Closes #4433 [josh@hasmanythrough.com]
354
-
355
- * Update OpenBase adaterp's maintainer's email address. Closes #5176. [Derrick Spell]
356
-
357
- * Add a quick note about :select and eagerly included associations. [Rick]
358
-
359
- * Add docs for the :as option in has_one associations. Closes #5144 [cdcarter@gmail.com]
360
-
361
- * Fixed that has_many collections shouldn't load the entire association to do build or create [DHH]
362
-
363
- * Added :allow_nil option for aggregations #5091 [ian.w.white@gmail.com]
364
-
365
- * Fix Oracle boolean support and tests. Closes #5139. [schoenm@earthlink.net]
366
-
367
- * create! no longer blows up when no attributes are passed and a :create scope is in effect (e.g. foo.bars.create! failed whereas foo.bars.create!({}) didn't.) [Jeremy Kemper]
368
-
369
- * Call Inflector#demodulize on the class name when eagerly including an STI model. Closes #5077 [info@loobmedia.com]
370
-
371
- * Preserve MySQL boolean column defaults when changing a column in a migration. Closes #5015. [pdcawley@bofh.org.uk]
372
-
373
- * PostgreSQL: migrations support :limit with :integer columns by mapping limit < 4 to smallint, > 4 to bigint, and anything else to integer. #2900 [keegan@thebasement.org]
374
-
375
- * Dates and times interpret empty strings as nil rather than 2000-01-01. #4830 [kajism@yahoo.com]
376
-
377
- * Allow :uniq => true with has_many :through associations. [Jeremy Kemper]
378
-
379
- * Ensure that StringIO is always available for the Schema dumper. [Marcel Molina Jr.]
380
-
381
- * Allow AR::Base#to_xml to include methods too. Closes #4921. [johan@textdrive.com]
382
-
383
- * Remove duplicate fixture entry in comments.yml. Closes #4923. [Blair Zajac <blair@orcaware.com>]
384
-
385
- * When grouping, use the appropriate option key. [Marcel Molina Jr.]
386
-
387
- * Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com]
388
-
389
- * Add warning about the proper way to validate the presence of a foreign key. Closes #4147. [Francois Beausoleil <francois.beausoleil@gmail.com>]
390
-
391
- * Fix syntax error in documentation. Closes #4679. [mislav@nippur.irb.hr]
392
-
393
- * Add Oracle support for CLOB inserts. Closes #4748. [schoenm@earthlink.net sandra.metz@duke.edu]
394
-
395
- * Various fixes for sqlserver_adapter (odbc statement finishing, ado schema dumper, drop index). Closes #4831. [kajism@yahoo.com]
396
-
397
- * Add support for :order option to with_scope. Closes #3887. [eric.daspet@survol.net]
398
-
399
- * Prettify output of schema_dumper by making things line up. Closes #4241 [Caio Chassot <caio@v2studio.com>]
400
-
401
- * Make build_postgresql_databases task make databases owned by the postgres user. Closes #4790. [mlaster@metavillage.com]
402
-
403
- * Sybase Adapter type conversion cleanup. Closes #4736. [dev@metacasa.net]
404
-
405
- * Fix bug where calculations with long alias names return null. [Rick]
406
-
407
- * Raise error when trying to add to a has_many :through association. Use the Join Model instead. [Rick]
408
-
409
- @post.tags << @tag # BAD
410
- @post.taggings.create(:tag => @tag) # GOOD
411
-
412
- * Allow all calculations to take the :include option, not just COUNT (closes #4840) [Rick]
413
-
414
- * Add ActiveRecord::Errors#to_xml [Jamis Buck]
415
-
416
- * Properly quote index names in migrations (closes #4764) [John Long]
417
-
418
- * Fix the HasManyAssociation#count method so it uses the new ActiveRecord::Base#count syntax, while maintaining backwards compatibility. [Rick]
419
-
420
- * Ensure that Associations#include_eager_conditions? checks both scoped and explicit conditions [Rick]
421
-
422
- * Associations#select_limited_ids_list adds the ORDER BY columns to the SELECT DISTINCT List for postgresql. [Rick]
423
-
424
- * Add :case_sensitive option to validates_uniqueness_of (closes #3090) [Rick]
425
-
426
- class Account < ActiveRecord::Base
427
- validates_uniqueness_of :email, :case_sensitive => false
428
- end
429
-
430
- * Allow multiple association extensions with :extend option (closes #4666) [Josh Susser]
431
-
432
- class Account < ActiveRecord::Base
433
- has_many :people, :extend => [FindOrCreateByNameExtension, FindRecentExtension]
434
- end
435
-
436
-
437
- *1.14.4* (August 8th, 2006)
438
-
439
- * Add warning about the proper way to validate the presence of a foreign key. #4147 [Francois Beausoleil <francois.beausoleil@gmail.com>]
440
-
441
- * Fix syntax error in documentation. #4679 [mislav@nippur.irb.hr]
442
-
443
- * Update inconsistent migrations documentation. #4683 [machomagna@gmail.com]
444
-
445
-
446
- *1.14.3* (June 27th, 2006)
447
-
448
- * Fix announcement of very long migration names. #5722 [blake@near-time.com]
449
-
450
- * Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>]
451
-
452
- * Properly quote index names in migrations (closes #4764) [John Long]
453
-
454
- * Ensure that Associations#include_eager_conditions? checks both scoped and explicit conditions [Rick]
455
-
456
- * Associations#select_limited_ids_list adds the ORDER BY columns to the SELECT DISTINCT List for postgresql. [Rick]
457
-
458
-
459
- *1.14.2* (April 9th, 2006)
460
-
461
- * Fixed calculations for the Oracle Adapter (closes #4626) [Michael Schoen]
462
-
463
-
464
- *1.14.1* (April 6th, 2006)
465
-
466
- * Fix type_name_with_module to handle type names that begin with '::'. Closes #4614. [Nicholas Seckar]
467
-
468
- * Fixed that that multiparameter assignment doesn't work with aggregations (closes #4620) [Lars Pind]
469
-
470
- * Enable Limit/Offset in Calculations (closes #4558) [lmarlow@yahoo.com]
471
-
472
- * Fixed that loading including associations returns all results if Load IDs For Limited Eager Loading returns none (closes #4528) [Rick]
473
-
474
- * Fixed HasManyAssociation#find bugs when :finder_sql is set #4600 [lagroue@free.fr]
475
-
476
- * Allow AR::Base#respond_to? to behave when @attributes is nil [zenspider]
477
-
478
- * Support eager includes when going through a polymorphic has_many association. [Rick]
479
-
480
- * Added support for eagerly including polymorphic has_one associations. (closes #4525) [Rick]
481
-
482
- class Post < ActiveRecord::Base
483
- has_one :tagging, :as => :taggable
484
- end
485
-
486
- Post.find :all, :include => :tagging
487
-
488
- * Added descriptive error messages for invalid has_many :through associations: going through :has_one or :has_and_belongs_to_many [Rick]
489
-
490
- * Added support for going through a polymorphic has_many association: (closes #4401) [Rick]
491
-
492
- class PhotoCollection < ActiveRecord::Base
493
- has_many :photos, :as => :photographic
494
- belongs_to :firm
495
- end
496
-
497
- class Firm < ActiveRecord::Base
498
- has_many :photo_collections
499
- has_many :photos, :through => :photo_collections
500
- end
501
-
502
- * Multiple fixes and optimizations in PostgreSQL adapter, allowing ruby-postgres gem to work properly. [ruben.nine@gmail.com]
503
-
504
- * Fixed that AssociationCollection#delete_all should work even if the records of the association are not loaded yet. [Florian Weber]
505
-
506
- * Changed those private ActiveRecord methods to take optional third argument :auto instead of nil for performance optimizations. (closes #4456) [Stefan]
507
-
508
- * Private ActiveRecord methods add_limit!, add_joins!, and add_conditions! take an OPTIONAL third argument 'scope' (closes #4456) [Rick]
509
-
510
- * DEPRECATED: Using additional attributes on has_and_belongs_to_many associations. Instead upgrade your association to be a real join model [DHH]
511
-
512
- * Fixed that records returned from has_and_belongs_to_many associations with additional attributes should be marked as read only (fixes #4512) [DHH]
513
-
514
- * Do not implicitly mark recordss of has_many :through as readonly but do mark habtm records as readonly (eventually only on join tables without rich attributes). [Marcel Mollina Jr.]
515
-
516
- * Fixed broken OCIAdapter #4457 [schoenm@earthlink.net]
517
-
518
-
519
- *1.14.0* (March 27th, 2006)
520
-
521
- * Replace 'rescue Object' with a finer grained rescue. Closes #4431. [Nicholas Seckar]
522
-
523
- * Fixed eager loading so that an aliased table cannot clash with a has_and_belongs_to_many join table [Rick]
524
-
525
- * Add support for :include to with_scope [andrew@redlinesoftware.com]
526
-
527
- * Support the use of public synonyms with the Oracle adapter; required ruby-oci8 v0.1.14 #4390 [schoenm@earthlink.net]
528
-
529
- * Change periods (.) in table aliases to _'s. Closes #4251 [jeff@ministrycentered.com]
530
-
531
- * Changed has_and_belongs_to_many join to INNER JOIN for Mysql 3.23.x. Closes #4348 [Rick]
532
-
533
- * Fixed issue that kept :select options from being scoped [Rick]
534
-
535
- * Fixed db_schema_import when binary types are present #3101 [DHH]
536
-
537
- * Fixed that MySQL enums should always be returned as strings #3501 [DHH]
538
-
539
- * Change has_many :through to use the :source option to specify the source association. :class_name is now ignored. [Rick Olson]
540
-
541
- class Connection < ActiveRecord::Base
542
- belongs_to :user
543
- belongs_to :channel
544
- end
545
-
546
- class Channel < ActiveRecord::Base
547
- has_many :connections
548
- has_many :contacts, :through => :connections, :class_name => 'User' # OLD
549
- has_many :contacts, :through => :connections, :source => :user # NEW
550
- end
551
-
552
- * Fixed DB2 adapter so nullable columns will be determines correctly now and quotes from column default values will be removed #4350 [contact@maik-schmidt.de]
553
-
554
- * Allow overriding of find parameters in scoped has_many :through calls [Rick Olson]
555
-
556
- In this example, :include => false disables the default eager association from loading. :select changes the standard
557
- select clause. :joins specifies a join that is added to the end of the has_many :through query.
558
-
559
- class Post < ActiveRecord::Base
560
- has_many :tags, :through => :taggings, :include => :tagging do
561
- def add_joins_and_select
562
- find :all, :select => 'tags.*, authors.id as author_id', :include => false,
563
- :joins => 'left outer join posts on taggings.taggable_id = posts.id left outer join authors on posts.author_id = authors.id'
564
- end
565
- end
566
- end
567
-
568
- * Fixed that schema changes while the database was open would break any connections to a SQLite database (now we reconnect if that error is throw) [DHH]
569
-
570
- * Don't classify the has_one class when eager loading, it is already singular. Add tests. (closes #4117) [jonathan@bluewire.net.nz]
571
-
572
- * Quit ignoring default :include options in has_many :through calls [Mark James]
573
-
574
- * Allow has_many :through associations to find the source association by setting a custom class (closes #4307) [jonathan@bluewire.net.nz]
575
-
576
- * Eager Loading support added for has_many :through => :has_many associations (see below). [Rick Olson]
577
-
578
- * Allow has_many :through to work on has_many associations (closes #3864) [sco@scottraymond.net] Example:
579
-
580
- class Firm < ActiveRecord::Base
581
- has_many :clients
582
- has_many :invoices, :through => :clients
583
- end
584
-
585
- class Client < ActiveRecord::Base
586
- belongs_to :firm
587
- has_many :invoices
588
- end
589
-
590
- class Invoice < ActiveRecord::Base
591
- belongs_to :client
592
- end
593
-
594
- * Raise error when trying to select many polymorphic objects with has_many :through or :include (closes #4226) [josh@hasmanythrough.com]
595
-
596
- * Fixed has_many :through to include :conditions set on the :through association. closes #4020 [jonathan@bluewire.net.nz]
597
-
598
- * Fix that has_many :through honors the foreign key set by the belongs_to association in the join model (closes #4259) [andylien@gmail.com / Rick]
599
-
600
- * SQL Server adapter gets some love #4298 [rtomayko@gmail.com]
601
-
602
- * Added OpenBase database adapter that builds on top of the http://www.spice-of-life.net/ruby-openbase/ driver. All functionality except LIMIT/OFFSET is supported #3528 [derrickspell@cdmplus.com]
603
-
604
- * Rework table aliasing to account for truncated table aliases. Add smarter table aliasing when doing eager loading of STI associations. This allows you to use the association name in the order/where clause. [Jonathan Viney / Rick Olson] #4108 Example (SpecialComment is using STI):
605
-
606
- Author.find(:all, :include => { :posts => :special_comments }, :order => 'special_comments.body')
607
-
608
- * Add AbstractAdapter#table_alias_for to create table aliases according to the rules of the current adapter. [Rick]
609
-
610
- * Provide access to the underlying database connection through Adapter#raw_connection. Enables the use of db-specific methods without complicating the adapters. #2090 [Koz]
611
-
612
- * Remove broken attempts at handling columns with a default of 'now()' in the postgresql adapter. #2257 [Koz]
613
-
614
- * Added connection#current_database that'll return of the current database (only works in MySQL, SQL Server, and Oracle so far -- please help implement for the rest of the adapters) #3663 [Tom ward]
615
-
616
- * Fixed that Migration#execute would have the table name prefix appended to its query #4110 [mark.imbriaco@pobox.com]
617
-
618
- * Make all tinyint(1) variants act like boolean in mysql (tinyint(1) unsigned, etc.) [Jamis Buck]
619
-
620
- * Use association's :conditions when eager loading. [jeremyevans0@gmail.com] #4144
621
-
622
- * Alias the has_and_belongs_to_many join table on eager includes. #4106 [jeremyevans0@gmail.com]
623
-
624
- This statement would normally error because the projects_developers table is joined twice, and therefore joined_on would be ambiguous.
625
-
626
- Developer.find(:all, :include => {:projects => :developers}, :conditions => 'join_project_developers.joined_on IS NOT NULL')
627
-
628
- * Oracle adapter gets some love #4230 [schoenm@earthlink.net]
629
-
630
- * Changes :text to CLOB rather than BLOB [Moses Hohman]
631
- * Fixes an issue with nil numeric length/scales (several)
632
- * Implements support for XMLTYPE columns [wilig / Kubo Takehiro]
633
- * Tweaks a unit test to get it all green again
634
- * Adds support for #current_database
635
-
636
- * Added Base.abstract_class? that marks which classes are not part of the Active Record hierarchy #3704 [Rick Olson]
637
-
638
- class CachedModel < ActiveRecord::Base
639
- self.abstract_class = true
640
- end
641
-
642
- class Post < CachedModel
643
- end
644
-
645
- CachedModel.abstract_class?
646
- => true
647
-
648
- Post.abstract_class?
649
- => false
650
-
651
- Post.base_class
652
- => Post
653
-
654
- Post.table_name
655
- => 'posts'
656
-
657
- * Allow :dependent options to be used with polymorphic joins. #3820 [Rick Olson]
658
-
659
- class Foo < ActiveRecord::Base
660
- has_many :attachments, :as => :attachable, :dependent => :delete_all
661
- end
662
-
663
- * Nicer error message on has_many :through when :through reflection can not be found. #4042 [court3nay@gmail.com]
664
-
665
- * Upgrade to Transaction::Simple 1.3 [Jamis Buck]
666
-
667
- * Catch FixtureClassNotFound when using instantiated fixtures on a fixture that has no ActiveRecord model [Rick Olson]
668
-
669
- * Allow ordering of calculated results and/or grouped fields in calculations [solo@gatelys.com]
670
-
671
- * Make ActiveRecord::Base#save! return true instead of nil on success. #4173 [johan@johansorensen.com]
672
-
673
- * Dynamically set allow_concurrency. #4044 [Stefan Kaes]
674
-
675
- * Added Base#to_xml that'll turn the current record into a XML representation [DHH]. Example:
676
-
677
- topic.to_xml
678
-
679
- ...returns:
680
-
681
- <?xml version="1.0" encoding="UTF-8"?>
682
- <topic>
683
- <title>The First Topic</title>
684
- <author-name>David</author-name>
685
- <id type="integer">1</id>
686
- <approved type="boolean">false</approved>
687
- <replies-count type="integer">0</replies-count>
688
- <bonus-time type="datetime">2000-01-01 08:28:00</bonus-time>
689
- <written-on type="datetime">2003-07-16 09:28:00</written-on>
690
- <content>Have a nice day</content>
691
- <author-email-address>david@loudthinking.com</author-email-address>
692
- <parent-id></parent-id>
693
- <last-read type="date">2004-04-15</last-read>
694
- </topic>
695
-
696
- ...and you can configure with:
697
-
698
- topic.to_xml(:skip_instruct => true, :except => [ :id, bonus_time, :written_on, replies_count ])
699
-
700
- ...that'll return:
701
-
702
- <topic>
703
- <title>The First Topic</title>
704
- <author-name>David</author-name>
705
- <approved type="boolean">false</approved>
706
- <content>Have a nice day</content>
707
- <author-email-address>david@loudthinking.com</author-email-address>
708
- <parent-id></parent-id>
709
- <last-read type="date">2004-04-15</last-read>
710
- </topic>
711
-
712
- You can even do load first-level associations as part of the document:
713
-
714
- firm.to_xml :include => [ :account, :clients ]
715
-
716
- ...that'll return something like:
717
-
718
- <?xml version="1.0" encoding="UTF-8"?>
719
- <firm>
720
- <id type="integer">1</id>
721
- <rating type="integer">1</rating>
722
- <name>37signals</name>
723
- <clients>
724
- <client>
725
- <rating type="integer">1</rating>
726
- <name>Summit</name>
727
- </client>
728
- <client>
729
- <rating type="integer">1</rating>
730
- <name>Microsoft</name>
731
- </client>
732
- </clients>
733
- <account>
734
- <id type="integer">1</id>
735
- <credit-limit type="integer">50</credit-limit>
736
- </account>
737
- </firm>
738
-
739
- * Allow :counter_cache to take a column name for custom counter cache columns [Jamis Buck]
740
-
741
- * Documentation fixes for :dependent [robby@planetargon.com]
742
-
743
- * Stop the MySQL adapter crashing when views are present. #3782 [Jonathan Viney]
744
-
745
- * Don't classify the belongs_to class, it is already singular #4117 [keithm@infused.org]
746
-
747
- * Allow set_fixture_class to take Classes instead of strings for a class in a module. Raise FixtureClassNotFound if a fixture can't load. [Rick Olson]
748
-
749
- * Fix quoting of inheritance column for STI eager loading #4098 [Jonathan Viney <jonathan@bluewire.net.nz>]
750
-
751
- * Added smarter table aliasing for eager associations for multiple self joins #3580 [Rick Olson]
752
-
753
- * The first time a table is referenced in a join, no alias is used.
754
- * After that, the parent class name and the reflection name are used.
755
-
756
- Tree.find(:all, :include => :children) # LEFT OUTER JOIN trees AS tree_children ...
757
-
758
- * Any additional join references get a numerical suffix like '_2', '_3', etc.
759
-
760
- * Fixed eager loading problems with single-table inheritance #3580 [Rick Olson]. Post.find(:all, :include => :special_comments) now returns all posts, and any special comments that the posts may have. And made STI work with has_many :through and polymorphic belongs_to.
761
-
762
- * Added cascading eager loading that allows for queries like Author.find(:all, :include=> { :posts=> :comments }), which will fetch all authors, their posts, and the comments belonging to those posts in a single query (using LEFT OUTER JOIN) #3913 [anna@wota.jp]. Examples:
763
-
764
- # cascaded in two levels
765
- >> Author.find(:all, :include=>{:posts=>:comments})
766
- => authors
767
- +- posts
768
- +- comments
769
-
770
- # cascaded in two levels and normal association
771
- >> Author.find(:all, :include=>[{:posts=>:comments}, :categorizations])
772
- => authors
773
- +- posts
774
- +- comments
775
- +- categorizations
776
-
777
- # cascaded in two levels with two has_many associations
778
- >> Author.find(:all, :include=>{:posts=>[:comments, :categorizations]})
779
- => authors
780
- +- posts
781
- +- comments
782
- +- categorizations
783
-
784
- # cascaded in three levels
785
- >> Company.find(:all, :include=>{:groups=>{:members=>{:favorites}}})
786
- => companies
787
- +- groups
788
- +- members
789
- +- favorites
790
-
791
- * Make counter cache work when replacing an association #3245 [eugenol@gmail.com]
792
-
793
- * Make migrations verbose [Jamis Buck]
794
-
795
- * Make counter_cache work with polymorphic belongs_to [Jamis Buck]
796
-
797
- * Fixed that calling HasOneProxy#build_model repeatedly would cause saving to happen #4058 [anna@wota.jp]
798
-
799
- * Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) #3765 [John Sheets]. It's almost completely Active Record compliant (including migrations), but has the following caveats:
800
-
801
- * Does not support DATE SQL column types; use DATETIME instead.
802
- * Date columns on HABTM join tables are returned as String, not Time.
803
- * Insertions are potentially broken for :polymorphic join tables
804
- * BLOB column access not yet fully supported
805
-
806
- * Clear stale, cached connections left behind by defunct threads. [Jeremy Kemper]
807
-
808
- * CHANGED DEFAULT: set ActiveRecord::Base.allow_concurrency to false. Most AR usage is in single-threaded applications. [Jeremy Kemper]
809
-
810
- * Renamed the "oci" adapter to "oracle", but kept the old name as an alias #4017 [schoenm@earthlink.net]
811
-
812
- * Fixed that Base.save should always return false if the save didn't succeed, including if it has halted by before_save's #1861, #2477 [DHH]
813
-
814
- * Speed up class -> connection caching and stale connection verification. #3979 [Stefan Kaes]
815
-
816
- * Add set_fixture_class to allow the use of table name accessors with models which use set_table_name. [Kevin Clark]
817
-
818
- * Added that fixtures to placed in subdirectories of the main fixture files are also loaded #3937 [dblack@wobblini.net]
819
-
820
- * Define attribute query methods to avoid method_missing calls. #3677 [jonathan@bluewire.net.nz]
821
-
822
- * ActiveRecord::Base.remove_connection explicitly closes database connections and doesn't corrupt the connection cache. Introducing the disconnect! instance method for the PostgreSQL, MySQL, and SQL Server adapters; implementations for the others are welcome. #3591 [Simon Stapleton, Tom Ward]
823
-
824
- * Added support for nested scopes #3407 [anna@wota.jp]. Examples:
825
-
826
- Developer.with_scope(:find => { :conditions => "salary > 10000", :limit => 10 }) do
827
- Developer.find(:all) # => SELECT * FROM developers WHERE (salary > 10000) LIMIT 10
828
-
829
- # inner rule is used. (all previous parameters are ignored)
830
- Developer.with_exclusive_scope(:find => { :conditions => "name = 'Jamis'" }) do
831
- Developer.find(:all) # => SELECT * FROM developers WHERE (name = 'Jamis')
832
- end
833
-
834
- # parameters are merged
835
- Developer.with_scope(:find => { :conditions => "name = 'Jamis'" }) do
836
- Developer.find(:all) # => SELECT * FROM developers WHERE (( salary > 10000 ) AND ( name = 'Jamis' )) LIMIT 10
837
- end
838
- end
839
-
840
- * Fixed db2 connection with empty user_name and auth options #3622 [phurley@gmail.com]
841
-
842
- * Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes #3699 [Masao Mutoh]
843
-
844
- * Fixed that reflections would bleed across class boundaries in single-table inheritance setups #3796 [lars@pind.com]
845
-
846
- * Added calculations: Base.count, Base.average, Base.sum, Base.minimum, Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson]. Examples:
847
-
848
- Person.average :age
849
- Person.minimum :age
850
- Person.maximum :age
851
- Person.sum :salary, :group => :last_name
852
-
853
- * Renamed Errors#count to Errors#size but kept an alias for the old name (and included an alias for length too) #3920 [contact@lukeredpath.co.uk]
854
-
855
- * Reflections don't attempt to resolve module nesting of association classes. Simplify type computation. [Jeremy Kemper]
856
-
857
- * Improved the Oracle OCI Adapter with better performance for column reflection (from #3210), fixes to migrations (from #3476 and #3742), tweaks to unit tests (from #3610), and improved documentation (from #2446) #3879 [Aggregated by schoenm@earthlink.net]
858
-
859
- * Fixed that the schema_info table used by ActiveRecord::Schema.define should respect table pre- and suffixes #3834 [rubyonrails@atyp.de]
860
-
861
- * Added :select option to Base.count that'll allow you to select something else than * to be counted on. Especially important for count queries using DISTINCT #3839 [skaes]
862
-
863
- * Correct syntax error in mysql DDL, and make AAACreateTablesTest run first [Bob Silva]
864
-
865
- * Allow :include to be used with has_many :through associations #3611 [Michael Schoen]
866
-
867
- * PostgreSQL: smarter schema dumps using pk_and_sequence_for(table). #2920 [Blair Zajac]
868
-
869
- * SQLServer: more compatible limit/offset emulation. #3779 [Tom Ward]
870
-
871
- * Polymorphic join support for has_one associations (has_one :foo, :as => :bar) #3785 [Rick Olson]
872
-
873
- * PostgreSQL: correctly parse negative integer column defaults. #3776 [bellis@deepthought.org]
874
-
875
- * Fix problems with count when used with :include [Jeremy Hopple and Kevin Clark]
876
-
877
- * ActiveRecord::RecordInvalid now states which validations failed in its default error message [Tobias Luetke]
878
-
879
- * Using AssociationCollection#build with arrays of hashes should call build, not create [DHH]
880
-
881
- * Remove definition of reloadable? from ActiveRecord::Base to make way for new Reloadable code. [Nicholas Seckar]
882
-
883
- * Fixed schema handling for DB2 adapter that didn't work: an initial schema could be set, but it wasn't used when getting tables and indexes #3678 [Maik Schmidt]
884
-
885
- * Support the :column option for remove_index with the PostgreSQL adapter. #3661 [shugo@ruby-lang.org]
886
-
887
- * Add documentation for add_index and remove_index. #3600 [Manfred Stienstra <m.stienstra@fngtps.com>]
888
-
889
- * If the OCI library is not available, raise an exception indicating as much. #3593 [schoenm@earthlink.net]
890
-
891
- * Add explicit :order in finder tests as postgresql orders results differently by default. #3577. [Rick Olson]
892
-
893
- * Make dynamic finders honor additional passed in :conditions. #3569 [Oleg Pudeyev <pudeyo@rpi.edu>, Marcel Molina Jr.]
894
-
895
- * Show a meaningful error when the DB2 adapter cannot be loaded due to missing dependencies. [Nicholas Seckar]
896
-
897
- * Make .count work for has_many associations with multi line finder sql [schoenm@earthlink.net]
898
-
899
- * Add AR::Base.base_class for querying the ancestor AR::Base subclass [Jamis Buck]
900
-
901
- * Allow configuration of the column used for optimistic locking [wilsonb@gmail.com]
902
-
903
- * Don't hardcode 'id' in acts as list. [ror@philippeapril.com]
904
-
905
- * Fix date errors for SQLServer in association tests. #3406 [kevin.clark@gmal.com]
906
-
907
- * Escape database name in MySQL adapter when creating and dropping databases. #3409 [anna@wota.jp]
908
-
909
- * Disambiguate table names for columns in validates_uniquness_of's WHERE clause. #3423 [alex.borovsky@gmail.com]
910
-
911
- * .with_scope imposed create parameters now bypass attr_protected [Tobias Luetke]
912
-
913
- * Don't raise an exception when there are more keys than there are named bind variables when sanitizing conditions. [Marcel Molina Jr.]
914
-
915
- * Multiple enhancements and adjustments to DB2 adaptor. #3377 [contact@maik-schmidt.de]
916
-
917
- * Sanitize scoped conditions. [Marcel Molina Jr.]
918
-
919
- * Added option to Base.reflection_of_all_associations to specify a specific association to scope the call. For example Base.reflection_of_all_associations(:has_many) [DHH]
920
-
921
- * Added ActiveRecord::SchemaDumper.ignore_tables which tells SchemaDumper which tables to ignore. Useful for tables with funky column like the ones required for tsearch2. [TobiasLuetke]
922
-
923
- * SchemaDumper now doesn't fail anymore when there are unknown column types in the schema. Instead the table is ignored and a Comment is left in the schema.rb. [TobiasLuetke]
924
-
925
- * Fixed that saving a model with multiple habtm associations would only save the first one. #3244 [yanowitz-rubyonrails@quantumfoam.org, Florian Weber]
926
-
927
- * Fix change_column to work with PostgreSQL 7.x and 8.x. #3141 [wejn@box.cz, Rick Olson, Scott Barron]
928
-
929
- * removed :piggyback in favor of just allowing :select on :through associations. [Tobias Luetke]
930
-
931
- * made method missing delegation to class methods on relation target work on :through associations. [Tobias Luetke]
932
-
933
- * made .find() work on :through relations. [Tobias Luetke]
934
-
935
- * Fix typo in association docs. #3296. [Blair Zajac]
936
-
937
- * Fixed :through relations when using STI inherited classes would use the inherited class's name as foreign key on the join model [Tobias Luetke]
938
-
939
- *1.13.2* (December 13th, 2005)
940
-
941
- * Become part of Rails 1.0
942
-
943
- * MySQL: allow encoding option for mysql.rb driver. [Jeremy Kemper]
944
-
945
- * Added option inheritance for find calls on has_and_belongs_to_many and has_many assosociations [DHH]. Example:
946
-
947
- class Post
948
- has_many :recent_comments, :class_name => "Comment", :limit => 10, :include => :author
949
- end
950
-
951
- post.recent_comments.find(:all) # Uses LIMIT 10 and includes authors
952
- post.recent_comments.find(:all, :limit => nil) # Uses no limit but include authors
953
- post.recent_comments.find(:all, :limit => nil, :include => nil) # Uses no limit and doesn't include authors
954
-
955
- * Added option to specify :group, :limit, :offset, and :select options from find on has_and_belongs_to_many and has_many assosociations [DHH]
956
-
957
- * MySQL: fixes for the bundled mysql.rb driver. #3160 [Justin Forder]
958
-
959
- * SQLServer: fix obscure optimistic locking bug. #3068 [kajism@yahoo.com]
960
-
961
- * SQLServer: support uniqueidentifier columns. #2930 [keithm@infused.org]
962
-
963
- * SQLServer: cope with tables names qualified by owner. #3067 [jeff@ministrycentered.com]
964
-
965
- * SQLServer: cope with columns with "desc" in the name. #1950 [Ron Lusk, Ryan Tomayko]
966
-
967
- * SQLServer: cope with primary keys with "select" in the name. #3057 [rdifrango@captechventures.com]
968
-
969
- * Oracle: active? performs a select instead of a commit. #3133 [Michael Schoen]
970
-
971
- * MySQL: more robust test for nullified result hashes. #3124 [Stefan Kaes]
972
-
973
- * Reloading an instance refreshes its aggregations as well as its associations. #3024 [François Beausolei]
974
-
975
- * Fixed that using :include together with :conditions array in Base.find would cause NoMethodError #2887 [Paul Hammmond]
976
-
977
- * PostgreSQL: more robust sequence name discovery. #3087 [Rick Olson]
978
-
979
- * Oracle: use syntax compatible with Oracle 8. #3131 [Michael Schoen]
980
-
981
- * MySQL: work around ruby-mysql/mysql-ruby inconsistency with mysql.stat. Eliminate usage of mysql.ping because it doesn't guarantee reconnect. Explicitly close and reopen the connection instead. [Jeremy Kemper]
982
-
983
- * Added preliminary support for polymorphic associations [DHH]
984
-
985
- * Added preliminary support for join models [DHH]
986
-
987
- * Allow validate_uniqueness_of to be scoped by more than just one column. #1559. [jeremy@jthopple.com, Marcel Molina Jr.]
988
-
989
- * Firebird: active? and reconnect! methods for handling stale connections. #428 [Ken Kunz <kennethkunz@gmail.com>]
990
-
991
- * Firebird: updated for FireRuby 0.4.0. #3009 [Ken Kunz <kennethkunz@gmail.com>]
992
-
993
- * MySQL and PostgreSQL: active? compatibility with the pure-Ruby driver. #428 [Jeremy Kemper]
994
-
995
- * Oracle: active? check pings the database rather than testing the last command status. #428 [Michael Schoen]
996
-
997
- * SQLServer: resolve column aliasing/quoting collision when using limit or offset in an eager find. #2974 [kajism@yahoo.com]
998
-
999
- * Reloading a model doesn't lose track of its connection. #2996 [junk@miriamtech.com, Jeremy Kemper]
1000
-
1001
- * Fixed bug where using update_attribute after pushing a record to a habtm association of the object caused duplicate rows in the join table. #2888 [colman@rominato.com, Florian Weber, Michael Schoen]
1002
-
1003
- * MySQL, PostgreSQL: reconnect! also reconfigures the connection. Otherwise, the connection 'loses' its settings if it times out and is reconnected. #2978 [Shugo Maeda]
1004
-
1005
- * has_and_belongs_to_many: use JOIN instead of LEFT JOIN. [Jeremy Kemper]
1006
-
1007
- * MySQL: introduce :encoding option to specify the character set for client, connection, and results. Only available for MySQL 4.1 and later with the mysql-ruby driver. Do SHOW CHARACTER SET in mysql client to see available encodings. #2975 [Shugo Maeda]
1008
-
1009
- * Add tasks to create, drop and rebuild the MySQL and PostgreSQL test databases. [Marcel Molina Jr.]
1010
-
1011
- * Correct boolean handling in generated reader methods. #2945 [don.park@gmail.com, Stefan Kaes]
1012
-
1013
- * Don't generate read methods for columns whose names are not valid ruby method names. #2946 [Stefan Kaes]
1014
-
1015
- * Document :force option to create_table. #2921 [Blair Zajac <blair@orcaware.com>]
1016
-
1017
- * Don't add the same conditions twice in has_one finder sql. #2916 [Jeremy Evans]
1018
-
1019
- * Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
1020
-
1021
- * Introducing the Firebird adapter. Quote columns and use attribute_condition more consistently. Setup guide: http://wiki.rubyonrails.com/rails/pages/Firebird+Adapter #1874 [Ken Kunz <kennethkunz@gmail.com>]
1022
-
1023
- * SQLServer: active? and reconnect! methods for handling stale connections. #428 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
1024
-
1025
- * Associations handle case-equality more consistently: item.parts.is_a?(Array) and item.parts === Array. #1345 [MarkusQ@reality.com]
1026
-
1027
- * SQLServer: insert uses given primary key value if not nil rather than SELECT @@IDENTITY. #2866 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
1028
-
1029
- * Oracle: active? and reconnect! methods for handling stale connections. Optionally retry queries after reconnect. #428 [Michael Schoen <schoenm@earthlink.net>]
1030
-
1031
- * Correct documentation for Base.delete_all. #1568 [Newhydra]
1032
-
1033
- * Oracle: test case for column default parsing. #2788 [Michael Schoen <schoenm@earthlink.net>]
1034
-
1035
- * Update documentation for Migrations. #2861 [Tom Werner <tom@cube6media.com>]
1036
-
1037
- * When AbstractAdapter#log rescues an exception, attempt to detect and reconnect to an inactive database connection. Connection adapter must respond to the active? and reconnect! instance methods. Initial support for PostgreSQL, MySQL, and SQLite. Make certain that all statements which may need reconnection are performed within a logged block: for example, this means no avoiding log(sql, name) { } if @logger.nil? #428 [Jeremy Kemper]
1038
-
1039
- * Oracle: Much faster column reflection. #2848 [Michael Schoen <schoenm@earthlink.net>]
1040
-
1041
- * Base.reset_sequence_name analogous to reset_table_name (mostly useful for testing). Base.define_attr_method allows nil values. [Jeremy Kemper]
1042
-
1043
- * PostgreSQL: smarter sequence name defaults, stricter last_insert_id, warn on pk without sequence. [Jeremy Kemper]
1044
-
1045
- * PostgreSQL: correctly discover custom primary key sequences. #2594 [Blair Zajac <blair@orcaware.com>, meadow.nnick@gmail.com, Jeremy Kemper]
1046
-
1047
- * SQLServer: don't report limits for unsupported field types. #2835 [Ryan Tomayko]
1048
-
1049
- * Include the Enumerable module in ActiveRecord::Errors. [Rick Bradley <rick@rickbradley.com>]
1050
-
1051
- * Add :group option, correspond to GROUP BY, to the find method and to the has_many association. #2818 [rubyonrails@atyp.de]
1052
-
1053
- * Don't cast nil or empty strings to a dummy date. #2789 [Rick Bradley <rick@rickbradley.com>]
1054
-
1055
- * acts_as_list plays nicely with inheritance by remembering the class which declared it. #2811 [rephorm@rephorm.com]
1056
-
1057
- * Fix sqlite adaptor's detection of missing dbfile or database declaration. [Nicholas Seckar]
1058
-
1059
- * Fixed acts_as_list for definitions without an explicit :order #2803 [jonathan@bluewire.net.nz]
1060
-
1061
- * Upgrade bundled ruby-mysql 0.2.4 with mysql411 shim (see #440) to ruby-mysql 0.2.6 with a patchset for 4.1 protocol support. Local change [301] is now a part of the main driver; reapplied local change [2182]. Removed GC.start from Result.free. [tommy@tmtm.org, akuroda@gmail.com, Doug Fales <doug.fales@gmail.com>, Jeremy Kemper]
1062
-
1063
- * Correct handling of complex order clauses with SQL Server limit emulation. #2770 [Tom Ward <tom@popdog.net>, Matt B.]
1064
-
1065
- * Correct whitespace problem in Oracle default column value parsing. #2788 [rick@rickbradley.com]
1066
-
1067
- * Destroy associated has_and_belongs_to_many records after all before_destroy callbacks but before destroy. This allows you to act on the habtm association as you please while preserving referential integrity. #2065 [larrywilliams1@gmail.com, sam.kirchmeier@gmail.com, elliot@townx.org, Jeremy Kemper]
1068
-
1069
- * Deprecate the old, confusing :exclusively_dependent option in favor of :dependent => :delete_all. [Jeremy Kemper]
1070
-
1071
- * More compatible Oracle column reflection. #2771 [Ryan Davis <ryand-ruby@zenspider.com>, Michael Schoen <schoenm@earthlink.net>]
1072
-
1073
-
1074
- *1.13.0* (November 7th, 2005)
1075
-
1076
- * Fixed faulty regex in get_table_name method (SQLServerAdapter) #2639 [Ryan Tomayko]
1077
-
1078
- * Added :include as an option for association declarations [DHH]. Example:
1079
-
1080
- has_many :posts, :include => [ :author, :comments ]
1081
-
1082
- * Rename Base.constrain to Base.with_scope so it doesn't conflict with existing concept of database constraints. Make scoping more robust: uniform method => parameters, validated method names and supported finder parameters, raise exception on nested scopes. [Jeremy Kemper] Example:
1083
-
1084
- Comment.with_scope(:find => { :conditions => 'active=true' }, :create => { :post_id => 5 }) do
1085
- # Find where name = ? and active=true
1086
- Comment.find :all, :conditions => ['name = ?', name]
1087
- # Create comment associated with :post_id
1088
- Comment.create :body => "Hello world"
1089
- end
1090
-
1091
- * Fixed that SQL Server should ignore :size declarations on anything but integer and string in the agnostic schema representation #2756 [Ryan Tomayko]
1092
-
1093
- * Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH]. Example:
1094
-
1095
- Comment.constrain(:creation => { :post_id => 5 }) do
1096
- # Associated with :post_id
1097
- Comment.create :body => "Hello world"
1098
- end
1099
-
1100
- This is rarely used directly, but allows for find_or_create on associations. So you can do:
1101
-
1102
- # If the tag doesn't exist, a new one is created that's associated with the person
1103
- person.tags.find_or_create_by_name("Summer")
1104
-
1105
- * Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH]. Example:
1106
-
1107
- # No 'Summer' tag exists
1108
- Tag.find_or_create_by_name("Summer") # equal to Tag.create(:name => "Summer")
1109
-
1110
- # Now the 'Summer' tag does exist
1111
- Tag.find_or_create_by_name("Summer") # equal to Tag.find_by_name("Summer")
1112
-
1113
- * Added extension capabilities to has_many and has_and_belongs_to_many proxies [DHH]. Example:
1114
-
1115
- class Account < ActiveRecord::Base
1116
- has_many :people do
1117
- def find_or_create_by_name(name)
1118
- first_name, *last_name = name.split
1119
- last_name = last_name.join " "
1120
-
1121
- find_or_create_by_first_name_and_last_name(first_name, last_name)
1122
- end
1123
- end
1124
- end
1125
-
1126
- person = Account.find(:first).people.find_or_create_by_name("David Heinemeier Hansson")
1127
- person.first_name # => "David"
1128
- person.last_name # => "Heinemeier Hansson"
1129
-
1130
- Note that the anoymous module must be declared using brackets, not do/end (due to order of evaluation).
1131
-
1132
- * Omit internal dtproperties table from SQLServer table list. #2729 [rtomayko@gmail.com]
1133
-
1134
- * Quote column names in generated SQL. #2728 [rtomayko@gmail.com]
1135
-
1136
- * Correct the pure-Ruby MySQL 4.1.1 shim's version test. #2718 [Jeremy Kemper]
1137
-
1138
- * Add Model.create! to match existing model.save! method. When save! raises RecordInvalid, you can catch the exception, retrieve the invalid record (invalid_exception.record), and see its errors (invalid_exception.record.errors). [Jeremy Kemper]
1139
-
1140
- * Correct fixture behavior when table name pluralization is off. #2719 [Rick Bradley <rick@rickbradley.com>]
1141
-
1142
- * Changed :dbfile to :database for SQLite adapter for consistency (old key still works as an alias) #2644 [Dan Peterson]
1143
-
1144
- * Added migration support for Oracle #2647 [Michael Schoen]
1145
-
1146
- * Worked around that connection can't be reset if allow_concurrency is off. #2648 [Michael Schoen <schoenm@earthlink.net>]
1147
-
1148
- * Fixed SQL Server adapter to pass even more tests and do even better #2634 [rtomayko@gmail.com]
1149
-
1150
- * Fixed SQL Server adapter so it honors options[:conditions] when applying :limits #1978 [Tom Ward]
1151
-
1152
- * Added migration support to SQL Server adapter (please someone do the same for Oracle and DB2) #2625 [Tom Ward]
1153
-
1154
- * Use AR::Base.silence rather than AR::Base.logger.silence in fixtures to preserve Log4r compatibility. #2618 [dansketcher@gmail.com]
1155
-
1156
- * Constraints are cloned so they can't be inadvertently modified while they're
1157
- in effect. Added :readonly finder constraint. Calling an association collection's class method (Part.foobar via item.parts.foobar) constrains :readonly => false since the collection's :joins constraint would otherwise force it to true. [Jeremy Kemper <rails@bitsweat.net>]
1158
-
1159
- * Added :offset and :limit to the kinds of options that Base.constrain can use #2466 [duane.johnson@gmail.com]
1160
-
1161
- * Fixed handling of nil number columns on Oracle and cleaned up tests for Oracle in general #2555 [schoenm@earthlink.net]
1162
-
1163
- * Added quoted_true and quoted_false methods and tables to db2_adapter and cleaned up tests for DB2 #2493, #2624 [maik schmidt]
1164
-
1165
-
1166
- *1.12.2* (October 26th, 2005)
1167
-
1168
- * Allow symbols to rename columns when using SQLite adapter. #2531 [kevin.clark@gmail.com]
1169
-
1170
- * Map Active Record time to SQL TIME. #2575, #2576 [Robby Russell <robby@planetargon.com>]
1171
-
1172
- * Clarify semantics of ActiveRecord::Base#respond_to? #2560 [skaes@web.de]
1173
-
1174
- * Fixed Association#clear for associations which have not yet been accessed. #2524 [Patrick Lenz <patrick@lenz.sh>]
1175
-
1176
- * HABTM finders shouldn't return readonly records. #2525 [Patrick Lenz <patrick@lenz.sh>]
1177
-
1178
- * Make all tests runnable on their own. #2521. [Blair Zajac <blair@orcaware.com>]
1179
-
1180
-
1181
- *1.12.1* (October 19th, 2005)
1182
-
1183
- * Always parenthesize :conditions options so they may be safely combined with STI and constraints.
1184
-
1185
- * Correct PostgreSQL primary key sequence detection. #2507 [tmornini@infomania.com]
1186
-
1187
- * Added support for using limits in eager loads that involve has_many and has_and_belongs_to_many associations
1188
-
1189
-
1190
- *1.12.0* (October 16th, 2005)
1191
-
1192
- * Update/clean up documentation (rdoc)
1193
-
1194
- * PostgreSQL sequence support. Use set_sequence_name in your model class to specify its primary key sequence. #2292 [Rick Olson <technoweenie@gmail.com>, Robby Russell <robby@planetargon.com>]
1195
-
1196
- * Change default logging colors to work on both white and black backgrounds. [Sam Stephenson]
1197
-
1198
- * YAML fixtures support ordered hashes for fixtures with foreign key dependencies in the same table. #1896 [purestorm@ggnore.net]
1199
-
1200
- * :dependent now accepts :nullify option. Sets the foreign key of the related objects to NULL instead of deleting them. #2015 [Robby Russell <robby@planetargon.com>]
1201
-
1202
- * Introduce read-only records. If you call object.readonly! then it will mark the object as read-only and raise ReadOnlyRecord if you call object.save. object.readonly? reports whether the object is read-only. Passing :readonly => true to any finder method will mark returned records as read-only. The :joins option now implies :readonly, so if you use this option, saving the same record will now fail. Use find_by_sql to work around.
1203
-
1204
- * Avoid memleak in dev mode when using fcgi
1205
-
1206
- * Simplified .clear on active record associations by using the existing delete_records method. #1906 [Caleb <me@cpb.ca>]
1207
-
1208
- * Delegate access to a customized primary key to the conventional id method. #2444. [Blair Zajac <blair@orcaware.com>]
1209
-
1210
- * Fix errors caused by assigning a has-one or belongs-to property to itself
1211
-
1212
- * Add ActiveRecord::Base.schema_format setting which specifies how databases should be dumped [Sam Stephenson]
1213
-
1214
- * Update DB2 adapter. #2206. [contact@maik-schmidt.de]
1215
-
1216
- * Corrections to SQLServer native data types. #2267. [rails.20.clarry@spamgourmet.com]
1217
-
1218
- * Deprecated ActiveRecord::Base.threaded_connection in favor of ActiveRecord::Base.allow_concurrency.
1219
-
1220
- * Protect id attribute from mass assigment even when the primary key is set to something else. #2438. [Blair Zajac <blair@orcaware.com>]
1221
-
1222
- * Misc doc fixes (typos/grammar/etc.). #2430. [coffee2code]
1223
-
1224
- * Add test coverage for content_columns. #2432. [coffee2code]
1225
-
1226
- * Speed up for unthreaded environments. #2431. [skaes@web.de]
1227
-
1228
- * Optimization for Mysql selects using mysql-ruby extension greater than 2.6.3. #2426. [skaes@web.de]
1229
-
1230
- * Speed up the setting of table_name. #2428. [skaes@web.de]
1231
-
1232
- * Optimize instantiation of STI subclass records. In partial fullfilment of #1236. [skaes@web.de]
1233
-
1234
- * Fix typo of 'constrains' to 'contraints'. #2069. [Michael Schuerig <michael@schuerig.de>]
1235
-
1236
- * Optimization refactoring for add_limit_offset!. In partial fullfilment of #1236. [skaes@web.de]
1237
-
1238
- * Add ability to get all siblings, including the current child, with acts_as_tree. Recloses #2140. [Michael Schuerig <michael@schuerig.de>]
1239
-
1240
- * Add geometric type for postgresql adapter. #2233 [akaspick@gmail.com]
1241
-
1242
- * Add option (true by default) to generate reader methods for each attribute of a record to avoid the overhead of calling method missing. In partial fullfilment of #1236. [skaes@web.de]
1243
-
1244
- * Add convenience predicate methods on Column class. In partial fullfilment of #1236. [skaes@web.de]
1245
-
1246
- * Raise errors when invalid hash keys are passed to ActiveRecord::Base.find. #2363 [Chad Fowler <chad@chadfowler.com>, Nicholas Seckar]
1247
-
1248
- * Added :force option to create_table that'll try to drop the table if it already exists before creating
1249
-
1250
- * Fix transactions so that calling return while inside a transaction will not leave an open transaction on the connection. [Nicholas Seckar]
1251
-
1252
- * Use foreign_key inflection uniformly. #2156 [Blair Zajac <blair@orcaware.com>]
1253
-
1254
- * model.association.clear should destroy associated objects if :dependent => true instead of nullifying their foreign keys. #2221 [joergd@pobox.com, ObieFernandez <obiefernandez@gmail.com>]
1255
-
1256
- * Returning false from before_destroy should cancel the action. #1829 [Jeremy Huffman]
1257
-
1258
- * Recognize PostgreSQL NOW() default as equivalent to CURRENT_TIMESTAMP or CURRENT_DATE, depending on the column's type. #2256 [mat <mat@absolight.fr>]
1259
-
1260
- * Extensive documentation for the abstract database adapter. #2250 [François Beausoleil <fbeausoleil@ftml.net>]
1261
-
1262
- * Clean up Fixtures.reset_sequences for PostgreSQL. Handle tables with no rows and models with custom primary keys. #2174, #2183 [jay@jay.fm, Blair Zajac <blair@orcaware.com>]
1263
-
1264
- * Improve error message when nil is assigned to an attr which validates_size_of within a range. #2022 [Manuel Holtgrewe <purestorm@ggnore.net>]
1265
-
1266
- * Make update_attribute use the same writer method that update_attributes uses.
1267
- #2237 [trevor@protocool.com]
1268
-
1269
- * Make migrations honor table name prefixes and suffixes. #2298 [Jakob S, Marcel Molina]
1270
-
1271
- * Correct and optimize PostgreSQL bytea escaping. #1745, #1837 [dave@cherryville.org, ken@miriamtech.com, bellis@deepthought.org]
1272
-
1273
- * Fixtures should only reset a PostgreSQL sequence if it corresponds to an integer primary key named id. #1749 [chris@chrisbrinker.com]
1274
-
1275
- * Standardize the interpretation of boolean columns in the Mysql and Sqlite adapters. (Use MysqlAdapter.emulate_booleans = false to disable this behavior)
1276
-
1277
- * Added new symbol-driven approach to activating observers with Base#observers= [DHH]. Example:
1278
-
1279
- ActiveRecord::Base.observers = :cacher, :garbage_collector
1280
-
1281
- * Added AbstractAdapter#select_value and AbstractAdapter#select_values as convenience methods for selecting single values, instead of hashes, of the first column in a SELECT #2283 [solo@gatelys.com]
1282
-
1283
- * Wrap :conditions in parentheses to prevent problems with OR's #1871 [Jamis Buck]
1284
-
1285
- * Allow the postgresql adapter to work with the SchemaDumper. [Jamis Buck]
1286
-
1287
- * Add ActiveRecord::SchemaDumper for dumping a DB schema to a pure-ruby file, making it easier to consolidate large migration lists and port database schemas between databases. [Jamis Buck]
1288
-
1289
- * Fixed migrations for Windows when using more than 10 [David Naseby]
1290
-
1291
- * Fixed that the create_x method from belongs_to wouldn't save the association properly #2042 [Florian Weber]
1292
-
1293
- * Fixed saving a record with two unsaved belongs_to associations pointing to the same object #2023 [Tobias Luetke]
1294
-
1295
- * Improved migrations' behavior when the schema_info table is empty. [Nicholas Seckar]
1296
-
1297
- * Fixed that Observers didn't observe sub-classes #627 [Florian Weber]
1298
-
1299
- * Fix eager loading error messages, allow :include to specify tables using strings or symbols. Closes #2222 [Marcel Molina]
1300
-
1301
- * Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae]
1302
-
1303
- * Fixed various problems with has_and_belongs_to_many when using customer finder_sql #2094 [Florian Weber]
1304
-
1305
- * Added better exception error when unknown column types are used with migrations #1814 [fbeausoleil@ftml.net]
1306
-
1307
- * Fixed "connection lost" issue with the bundled Ruby/MySQL driver (would kill the app after 8 hours of inactivity) #2163, #428 [kajism@yahoo.com]
1308
-
1309
- * Fixed comparison of Active Record objects so two new objects are not equal #2099 [deberg]
1310
-
1311
- * Fixed that the SQL Server adapter would sometimes return DBI::Timestamp objects instead of Time #2127 [Tom Ward]
1312
-
1313
- * Added the instance methods #root and #ancestors on acts_as_tree and fixed siblings to not include the current node #2142, #2140 [coffee2code]
1314
-
1315
- * Fixed that Active Record would call SHOW FIELDS twice (or more) for the same model when the cached results were available #1947 [sd@notso.net]
1316
-
1317
- * Added log_level and use_silence parameter to ActiveRecord::Base.benchmark. The first controls at what level the benchmark statement will be logged (now as debug, instead of info) and the second that can be passed false to include all logging statements during the benchmark block/
1318
-
1319
- * Make sure the schema_info table is created before querying the current version #1903
1320
-
1321
- * Fixtures ignore table name prefix and suffix #1987 [Jakob S]
1322
-
1323
- * Add documentation for index_type argument to add_index method for migrations #2005 [blaine@odeo.com]
1324
-
1325
- * Modify read_attribute to allow a symbol argument #2024 [Ken Kunz]
1326
-
1327
- * Make destroy return self #1913 [sebastian.kanthak@muehlheim.de]
1328
-
1329
- * Fix typo in validations documentation #1938 [court3nay]
1330
-
1331
- * Make acts_as_list work for insert_at(1) #1966 [hensleyl@papermountain.org]
1332
-
1333
- * Fix typo in count_by_sql documentation #1969 [Alexey Verkhovsky]
1334
-
1335
- * Allow add_column and create_table to specify NOT NULL #1712 [emptysands@gmail.com]
1336
-
1337
- * Fix create_table so that id column is implicitly added [Rick Olson]
1338
-
1339
- * Default sequence names for Oracle changed to #{table_name}_seq, which is the most commonly used standard. In addition, a new method ActiveRecord::Base#set_sequence_name allows the developer to set the sequence name per model. This is a non-backwards-compatible change -- anyone using the old-style "rails_sequence" will need to either create new sequences, or set: ActiveRecord::Base.set_sequence_name = "rails_sequence" #1798
1340
-
1341
- * OCIAdapter now properly handles synonyms, which are commonly used to separate out the schema owner from the application user #1798
1342
-
1343
- * Fixed the handling of camelCase columns names in Oracle #1798
1344
-
1345
- * Implemented for OCI the Rakefile tasks of :clone_structure_to_test, :db_structure_dump, and :purge_test_database, which enable Oracle folks to enjoy all the agile goodness of Rails for testing. Note that the current implementation is fairly limited -- only tables and sequences are cloned, not constraints or indexes. A full clone in Oracle generally requires some manual effort, and is version-specific. Post 9i, Oracle recommends the use of the DBMS_METADATA package, though that approach requires editing of the physical characteristics generated #1798
1346
-
1347
- * Fixed the handling of multiple blob columns in Oracle if one or more of them are null #1798
1348
-
1349
- * Added support for calling constrained class methods on has_many and has_and_belongs_to_many collections #1764 [Tobias Luetke]
1350
-
1351
- class Comment < AR:B
1352
- def self.search(q)
1353
- find(:all, :conditions => ["body = ?", q])
1354
- end
1355
- end
1356
-
1357
- class Post < AR:B
1358
- has_many :comments
1359
- end
1360
-
1361
- Post.find(1).comments.search('hi') # => SELECT * from comments WHERE post_id = 1 AND body = 'hi'
1362
-
1363
- NOTICE: This patch changes the underlying SQL generated by has_and_belongs_to_many queries. If your relying on that, such as
1364
- by explicitly referencing the old t and j aliases, you'll need to update your code. Of course, you _shouldn't_ be relying on
1365
- details like that no less than you should be diving in to touch private variables. But just in case you do, consider yourself
1366
- noticed :)
1367
-
1368
- * Added migration support for SQLite (using temporary tables to simulate ALTER TABLE) #1771 [Sam Stephenson]
1369
-
1370
- * Remove extra definition of supports_migrations? from abstract_adaptor.rb [Nicholas Seckar]
1371
-
1372
- * Fix acts_as_list so that moving next-to-last item to the bottom does not result in duplicate item positions
1373
-
1374
- * Fixed incompatibility in DB2 adapter with the new limit/offset approach #1718 [Maik Schmidt]
1375
-
1376
- * Added :select option to find which can specify a different value than the default *, like find(:all, :select => "first_name, last_name"), if you either only want to select part of the columns or exclude columns otherwise included from a join #1338 [Stefan Kaes]
1377
-
1378
-
1379
- *1.11.1* (11 July, 2005)
1380
-
1381
- * Added support for limit and offset with eager loading of has_one and belongs_to associations. Using the options with has_many and has_and_belongs_to_many associations will now raise an ActiveRecord::ConfigurationError #1692 [Rick Olsen]
1382
-
1383
- * Fixed that assume_bottom_position (in acts_as_list) could be called on items already last in the list and they would move one position away from the list #1648 [tyler@kianta.com]
1384
-
1385
- * Added ActiveRecord::Base.threaded_connections flag to turn off 1-connection per thread (required for thread safety). By default it's on, but WEBrick in Rails need it off #1685 [Sam Stephenson]
1386
-
1387
- * Correct reflected table name for singular associations. #1688 [court3nay@gmail.com]
1388
-
1389
- * Fixed optimistic locking with SQL Server #1660 [tom@popdog.net]
1390
-
1391
- * Added ActiveRecord::Migrator.migrate that can figure out whether to go up or down based on the target version and the current
1392
-
1393
- * Added better error message for "packets out of order" #1630 [courtenay]
1394
-
1395
- * Fixed first run of "rake migrate" on PostgreSQL by not expecting a return value on the id #1640
1396
-
1397
-
1398
- *1.11.0* (6 July, 2005)
1399
-
1400
- * Fixed that Yaml error message in fixtures hid the real error #1623 [Nicholas Seckar]
1401
-
1402
- * Changed logging of SQL statements to use the DEBUG level instead of INFO
1403
-
1404
- * Added new Migrations framework for describing schema transformations in a way that can be easily applied across multiple databases #1604 [Tobias Luetke] See documentation under ActiveRecord::Migration and the additional support in the Rails rakefile/generator.
1405
-
1406
- * Added callback hooks to association collections #1549 [Florian Weber]. Example:
1407
-
1408
- class Project
1409
- has_and_belongs_to_many :developers, :before_add => :evaluate_velocity
1410
-
1411
- def evaluate_velocity(developer)
1412
- ...
1413
- end
1414
- end
1415
-
1416
- ..raising an exception will cause the object not to be added (or removed, with before_remove).
1417
-
1418
-
1419
- * Fixed Base.content_columns call for SQL Server adapter #1450 [DeLynn Berry]
1420
-
1421
- * Fixed Base#write_attribute to work with both symbols and strings #1190 [Paul Legato]
1422
-
1423
- * Fixed that has_and_belongs_to_many didn't respect single table inheritance types #1081 [Florian Weber]
1424
-
1425
- * Speed up ActiveRecord#method_missing for the common case (read_attribute).
1426
-
1427
- * Only notify observers on after_find and after_initialize if these methods are defined on the model. #1235 [skaes@web.de]
1428
-
1429
- * Fixed that single-table inheritance sub-classes couldn't be used to limit the result set with eager loading #1215 [Chris McGrath]
1430
-
1431
- * Fixed validates_numericality_of to work with overrided getter-method when :allow_nil is on #1316 [raidel@onemail.at]
1432
-
1433
- * Added roots, root, and siblings to the batch of methods added by acts_as_tree #1541 [michael@schuerig.de]
1434
-
1435
- * Added support for limit/offset with the MS SQL Server driver so that pagination will now work #1569 [DeLynn Berry]
1436
-
1437
- * Added support for ODBC connections to MS SQL Server so you can connect from a non-Windows machine #1569 [Mark Imbriaco/DeLynn Berry]
1438
-
1439
- * Fixed that multiparameter posts ignored attr_protected #1532 [alec+rails@veryclever.net]
1440
-
1441
- * Fixed problem with eager loading when using a has_and_belongs_to_many association using :association_foreign_key #1504 [flash@vanklinkenbergsoftware.nl]
1442
-
1443
- * Fixed Base#find to honor the documentation on how :joins work and make them consistent with Base#count #1405 [pritchie@gmail.com]. What used to be:
1444
-
1445
- Developer.find :all, :joins => 'developers_projects', :conditions => 'id=developer_id AND project_id=1'
1446
-
1447
- ...should instead be:
1448
-
1449
- Developer.find(
1450
- :all,
1451
- :joins => 'LEFT JOIN developers_projects ON developers.id = developers_projects.developer_id',
1452
- :conditions => 'project_id=1'
1453
- )
1454
-
1455
- * Fixed that validations didn't respecting custom setting for too_short, too_long messages #1437 [Marcel Molina]
1456
-
1457
- * Fixed that clear_association_cache doesn't delete new associations on new records (so you can safely place new records in the session with Action Pack without having new associations wiped) #1494 [cluon]
1458
-
1459
- * Fixed that calling Model.find([]) returns [] and doesn't throw an exception #1379
1460
-
1461
- * Fixed that adding a record to a has_and_belongs_to collection would always save it -- now it only saves if its a new record #1203 [Alisdair McDiarmid]
1462
-
1463
- * Fixed saving of in-memory association structures to happen as a after_create/after_update callback instead of after_save -- that way you can add new associations in after_create/after_update callbacks without getting them saved twice
1464
-
1465
- * Allow any Enumerable, not just Array, to work as bind variables #1344 [Jeremy Kemper]
1466
-
1467
- * Added actual database-changing behavior to collection assigment for has_many and has_and_belongs_to_many #1425 [Sebastian Kanthak].
1468
- Example:
1469
-
1470
- david.projects = [Project.find(1), Project.new("name" => "ActionWebSearch")]
1471
- david.save
1472
-
1473
- If david.projects already contain the project with ID 1, this is left unchanged. Any other projects are dropped. And the new
1474
- project is saved when david.save is called.
1475
-
1476
- Also included is a way to do assignments through IDs, which is perfect for checkbox updating, so you get to do:
1477
-
1478
- david.project_ids = [1, 5, 7]
1479
-
1480
- * Corrected typo in find SQL for has_and_belongs_to_many. #1312 [ben@bensinclair.com]
1481
-
1482
- * Fixed sanitized conditions for has_many finder method. #1281 [jackc@hylesanderson.com, pragdave, Tobias Luetke]
1483
-
1484
- * Comprehensive PostgreSQL schema support. Use the optional schema_search_path directive in database.yml to give a comma-separated list of schemas to search for your tables. This allows you, for example, to have tables in a shared schema without having to use a custom table name. See http://www.postgresql.org/docs/8.0/interactive/ddl-schemas.html to learn more. #827 [dave@cherryville.org]
1485
-
1486
- * Corrected @@configurations typo #1410 [david@ruppconsulting.com]
1487
-
1488
- * Return PostgreSQL columns in the order they were declared #1374 [perlguy@gmail.com]
1489
-
1490
- * Allow before/after update hooks to work on models using optimistic locking
1491
-
1492
- * Eager loading of dependent has_one associations won't delete the association #1212
1493
-
1494
- * Added a second parameter to the build and create method for has_one that controls whether the existing association should be replaced (which means nullifying its foreign key as well). By default this is true, but false can be passed to prevent it.
1495
-
1496
- * Using transactional fixtures now causes the data to be loaded only once.
1497
-
1498
- * Added fixture accessor methods that can be used when instantiated fixtures are disabled.
1499
-
1500
- fixtures :web_sites
1501
-
1502
- def test_something
1503
- assert_equal "Ruby on Rails", web_sites(:rubyonrails).name
1504
- end
1505
-
1506
- * Added DoubleRenderError exception that'll be raised if render* is called twice #518 [Nicholas Seckar]
1507
-
1508
- * Fixed exceptions occuring after render has been called #1096 [Nicholas Seckar]
1509
-
1510
- * CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make " " fail the validation where it didn't before #1309
1511
-
1512
- * Added Errors#add_on_blank which works like Errors#add_on_empty, but uses Object#blank? instead
1513
-
1514
- * Added the :if option to all validations that can either use a block or a method pointer to determine whether the validation should be run or not. #1324 [Duane Johnson/jhosteny]. Examples:
1515
-
1516
- Conditional validations such as the following are made possible:
1517
- validates_numericality_of :income, :if => :employed?
1518
-
1519
- Conditional validations can also solve the salted login generator problem:
1520
- validates_confirmation_of :password, :if => :new_password?
1521
-
1522
- Using blocks:
1523
- validates_presence_of :username, :if => Proc.new { |user| user.signup_step > 1 }
1524
-
1525
- * Fixed use of construct_finder_sql when using :join #1288 [dwlt@dwlt.net]
1526
-
1527
- * Fixed that :delete_sql in has_and_belongs_to_many associations couldn't access record properties #1299 [Rick Olson]
1528
-
1529
- * Fixed that clone would break when an aggregate had the same name as one of its attributes #1307 [Jeremy Kemper]
1530
-
1531
- * Changed that destroying an object will only freeze the attributes hash, which keeps the object from having attributes changed (as that wouldn't make sense), but allows for the querying of associations after it has been destroyed.
1532
-
1533
- * Changed the callbacks such that observers are notified before the in-object callbacks are triggered. Without this change, it wasn't possible to act on the whole object in something like a before_destroy observer without having the objects own callbacks (like deleting associations) called first.
1534
-
1535
- * Added option for passing an array to the find_all version of the dynamic finders and have it evaluated as an IN fragment. Example:
1536
-
1537
- # SELECT * FROM topics WHERE title IN ('First', 'Second')
1538
- Topic.find_all_by_title(["First", "Second"])
1539
-
1540
- * Added compatibility with camelCase column names for dynamic finders #533 [Dee.Zsombor]
1541
-
1542
- * Fixed extraneous comma in count() function that made it not work with joins #1156 [jarkko/Dee.Zsombor]
1543
-
1544
- * Fixed incompatibility with Base#find with an array of ids that would fail when using eager loading #1186 [Alisdair McDiarmid]
1545
-
1546
- * Fixed that validate_length_of lost :on option when :within was specified #1195 [jhosteny@mac.com]
1547
-
1548
- * Added encoding and min_messages options for PostgreSQL #1205 [shugo]. Configuration example:
1549
-
1550
- development:
1551
- adapter: postgresql
1552
- database: rails_development
1553
- host: localhost
1554
- username: postgres
1555
- password:
1556
- encoding: UTF8
1557
- min_messages: ERROR
1558
-
1559
- * Fixed acts_as_list where deleting an item that was removed from the list would ruin the positioning of other list items #1197 [Jamis Buck]
1560
-
1561
- * Added validates_exclusion_of as a negative of validates_inclusion_of
1562
-
1563
- * Optimized counting of has_many associations by setting the association to empty if the count is 0 so repeated calls doesn't trigger database calls
1564
-
1565
-
1566
- *1.10.1* (20th April, 2005)
1567
-
1568
- * Fixed frivilous database queries being triggered with eager loading on empty associations and other things
1569
-
1570
- * Fixed order of loading in eager associations
1571
-
1572
- * Fixed stray comma when using eager loading and ordering together from has_many associations #1143
1573
-
1574
-
1575
- *1.10.0* (19th April, 2005)
1576
-
1577
- * Added eager loading of associations as a way to solve the N+1 problem more gracefully without piggy-back queries. Example:
1578
-
1579
- for post in Post.find(:all, :limit => 100)
1580
- puts "Post: " + post.title
1581
- puts "Written by: " + post.author.name
1582
- puts "Last comment on: " + post.comments.first.created_on
1583
- end
1584
-
1585
- This used to generate 301 database queries if all 100 posts had both author and comments. It can now be written as:
1586
-
1587
- for post in Post.find(:all, :limit => 100, :include => [ :author, :comments ])
1588
-
1589
- ...and the number of database queries needed is now 1.
1590
-
1591
- * Added new unified Base.find API and deprecated the use of find_first and find_all. See the documentation for Base.find. Examples:
1592
-
1593
- Person.find(1, :conditions => "administrator = 1", :order => "created_on DESC")
1594
- Person.find(1, 5, 6, :conditions => "administrator = 1", :order => "created_on DESC")
1595
- Person.find(:first, :order => "created_on DESC", :offset => 5)
1596
- Person.find(:all, :conditions => [ "category IN (?)", categories], :limit => 50)
1597
- Person.find(:all, :offset => 10, :limit => 10)
1598
-
1599
- * Added acts_as_nested_set #1000 [wschenk]. Introduction:
1600
-
1601
- This acts provides Nested Set functionality. Nested Set is similiar to Tree, but with
1602
- the added feature that you can select the children and all of it's descendants with
1603
- a single query. A good use case for this is a threaded post system, where you want
1604
- to display every reply to a comment without multiple selects.
1605
-
1606
- * Added Base.save! that attempts to save the record just like Base.save but will raise a RecordInvalid exception instead of returning false if the record is not valid [After much pestering from Dave Thomas]
1607
-
1608
- * Fixed PostgreSQL usage of fixtures with regards to public schemas and table names with dots #962 [gnuman1@gmail.com]
1609
-
1610
- * Fixed that fixtures were being deleted in the same order as inserts causing FK errors #890 [andrew.john.peters@gmail.com]
1611
-
1612
- * Fixed loading of fixtures in to be in the right order (or PostgreSQL would bark) #1047 [stephenh@chase3000.com]
1613
-
1614
- * Fixed page caching for non-vhost applications living underneath the root #1004 [Ben Schumacher]
1615
-
1616
- * Fixes a problem with the SQL Adapter which was resulting in IDENTITY_INSERT not being set to ON when it should be #1104 [adelle]
1617
-
1618
- * Added the option to specify the acceptance string in validates_acceptance_of #1106 [caleb@aei-tech.com]
1619
-
1620
- * Added insert_at(position) to acts_as_list #1083 [DeLynnB]
1621
-
1622
- * Removed the default order by id on has_and_belongs_to_many queries as it could kill performance on large sets (you can still specify by hand with :order)
1623
-
1624
- * Fixed that Base.silence should restore the old logger level when done, not just set it to DEBUG #1084 [yon@milliped.com]
1625
-
1626
- * Fixed boolean saving on Oracle #1093 [mparrish@pearware.org]
1627
-
1628
- * Moved build_association and create_association for has_one and belongs_to out of deprecation as they work when the association is nil unlike association.build and association.create, which require the association to be already in place #864
1629
-
1630
- * Added rollbacks of transactions if they're active as the dispatcher is killed gracefully (TERM signal) #1054 [Leon Bredt]
1631
-
1632
- * Added quoting of column names for fixtures #997 [jcfischer@gmail.com]
1633
-
1634
- * Fixed counter_sql when no records exist in database for PostgreSQL (would give error, not 0) #1039 [Caleb Tennis]
1635
-
1636
- * Fixed that benchmarking times for rendering included db runtimes #987 [skaes@web.de]
1637
-
1638
- * Fixed boolean queries for t/f fields in PostgreSQL #995 [dave@cherryville.org]
1639
-
1640
- * Added that model.items.delete(child) will delete the child, not just set the foreign key to nil, if the child is dependent on the model #978 [Jeremy Kemper]
1641
-
1642
- * Fixed auto-stamping of dates (created_on/updated_on) for PostgreSQL #985 [dave@cherryville.org]
1643
-
1644
- * Fixed Base.silence/benchmark to only log if a logger has been configured #986 [skaes@web.de]
1645
-
1646
- * Added a join parameter as the third argument to Base.find_first and as the second to Base.count #426, #988 [skaes@web.de]
1647
-
1648
- * Fixed bug in Base#hash method that would treat records with the same string-based id as different [Dave Thomas]
1649
-
1650
- * Renamed DateHelper#distance_of_time_in_words_to_now to DateHelper#time_ago_in_words (old method name is still available as a deprecated alias)
1651
-
1652
-
1653
- *1.9.1* (27th March, 2005)
1654
-
1655
- * Fixed that Active Record objects with float attribute could not be cloned #808
1656
-
1657
- * Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]
1658
-
1659
- * Fixed that :counter_cache option would look for a line_items_count column for a LineItem object instead of lineitems_count
1660
-
1661
- * Fixed that AR exists?() would explode on postgresql if the passed id did not match the PK type #900 [Scott Barron]
1662
-
1663
- * Fixed the MS SQL adapter to work with the new limit/offset approach and with binary data (still suffering from 7KB limit, though) #901 [delynnb]
1664
-
1665
-
1666
- *1.9.0* (22th March, 2005)
1667
-
1668
- * Added adapter independent limit clause as a two-element array with the first being the limit, the second being the offset #795 [Sam Stephenson]. Example:
1669
-
1670
- Developer.find_all nil, 'id ASC', 5 # return the first five developers
1671
- Developer.find_all nil, 'id ASC', [3, 8] # return three developers, starting from #8 and forward
1672
-
1673
- This doesn't yet work with the DB2 or MS SQL adapters. Patches to make that happen are encouraged.
1674
-
1675
- * Added alias_method :to_param, :id to Base, such that Active Record objects to be used as URL parameters in Action Pack automatically #812 [Nicholas Seckar/Sam Stephenson]
1676
-
1677
- * Improved the performance of the OCI8 adapter for Oracle #723 [pilx/gjenkins]
1678
-
1679
- * Added type conversion before saving a record, so string-based values like "10.0" aren't left for the database to convert #820 [dave@cherryville.org]
1680
-
1681
- * Added with additional settings for working with transactional fixtures and pre-loaded test databases #865 [mindel]
1682
-
1683
- * Fixed acts_as_list to trigger remove_from_list on destroy after the fact, not before, so a unique position can be maintained #871 [Alisdair McDiarmid]
1684
-
1685
- * Added the possibility of specifying fixtures in multiple calls #816 [kim@tinker.com]
1686
-
1687
- * Added Base.exists?(id) that'll return true if an object of the class with the given id exists #854 [stian@grytoyr.net]
1688
-
1689
- * Added optionally allow for nil or empty strings with validates_numericality_of #801 [Sebastian Kanthak]
1690
-
1691
- * Fixed problem with using slashes in validates_format_of regular expressions #801 [Sebastian Kanthak]
1692
-
1693
- * Fixed that SQLite3 exceptions are caught and reported properly #823 [yerejm]
1694
-
1695
- * Added that all types of after_find/after_initialized callbacks are triggered if the explicit implementation is present, not only the explicit implementation itself
1696
-
1697
- * Fixed that symbols can be used on attribute assignment, like page.emails.create(:subject => data.subject, :body => data.body)
1698
-
1699
-
1700
- *1.8.0* (7th March, 2005)
1701
-
1702
- * Added ActiveRecord::Base.colorize_logging to control whether to use colors in logs or not (on by default)
1703
-
1704
- * Added support for timestamp with time zone in PostgreSQL #560 [Scott Barron]
1705
-
1706
- * Added MultiparameterAssignmentErrors and AttributeAssignmentError exceptions #777 [demetrius]. Documentation:
1707
-
1708
- * +MultiparameterAssignmentErrors+ -- collection of errors that occurred during a mass assignment using the
1709
- +attributes=+ method. The +errors+ property of this exception contains an array of +AttributeAssignmentError+
1710
- objects that should be inspected to determine which attributes triggered the errors.
1711
- * +AttributeAssignmentError+ -- an error occurred while doing a mass assignment through the +attributes=+ method.
1712
- You can inspect the +attribute+ property of the exception object to determine which attribute triggered the error.
1713
-
1714
- * Fixed that postgresql adapter would fails when reading bytea fields with null value #771 [rodrigo k]
1715
-
1716
- * Added transactional fixtures that uses rollback to undo changes to fixtures instead of DELETE/INSERT -- it's much faster. See documentation under Fixtures #760 [Jeremy Kemper]
1717
-
1718
- * Added destruction of dependent objects in has_one associations when a new assignment happens #742 [mindel]. Example:
1719
-
1720
- class Account < ActiveRecord::Base
1721
- has_one :credit_card, :dependent => true
1722
- end
1723
- class CreditCard < ActiveRecord::Base
1724
- belongs_to :account
1725
- end
1726
-
1727
- account.credit_card # => returns existing credit card, lets say id = 12
1728
- account.credit_card = CreditCard.create("number" => "123")
1729
- account.save # => CC with id = 12 is destroyed
1730
-
1731
-
1732
- * Added validates_numericality_of #716 [skanthak/c.r.mcgrath]. Docuemntation:
1733
-
1734
- Validates whether the value of the specified attribute is numeric by trying to convert it to
1735
- a float with Kernel.Float (if <tt>integer</tt> is false) or applying it to the regular expression
1736
- <tt>/^[\+\-]?\d+$/</tt> (if <tt>integer</tt> is set to true).
1737
-
1738
- class Person < ActiveRecord::Base
1739
- validates_numericality_of :value, :on => :create
1740
- end
1741
-
1742
- Configuration options:
1743
- * <tt>message</tt> - A custom error message (default is: "is not a number")
1744
- * <tt>on</tt> Specifies when this validation is active (default is :save, other options :create, :update)
1745
- * <tt>only_integer</tt> Specifies whether the value has to be an integer, e.g. an integral value (default is false)
1746
-
1747
-
1748
- * Fixed that HasManyAssociation#count was using :finder_sql rather than :counter_sql if it was available #445 [Scott Barron]
1749
-
1750
- * Added better defaults for composed_of, so statements like composed_of :time_zone, :mapping => %w( time_zone time_zone ) can be written without the mapping part (it's now assumed)
1751
-
1752
- * Added MacroReflection#macro which will return a symbol describing the macro used (like :composed_of or :has_many) #718, #248 [james@slashetc.com]
1753
-
1754
-
1755
- *1.7.0* (24th February, 2005)
1756
-
1757
- * Changed the auto-timestamping feature to use ActiveRecord::Base.default_timezone instead of entertaining the parallel ActiveRecord::Base.timestamps_gmt method. The latter is now deprecated and will throw a warning on use (but still work) #710 [Jamis Buck]
1758
-
1759
- * Added a OCI8-based Oracle adapter that has been verified to work with Oracle 8 and 9 #629 [Graham Jenkins]. Usage notes:
1760
-
1761
- 1. Key generation uses a sequence "rails_sequence" for all tables. (I couldn't find a simple
1762
- and safe way of passing table-specific sequence information to the adapter.)
1763
- 2. Oracle uses DATE or TIMESTAMP datatypes for both dates and times. Consequently I have had to
1764
- resort to some hacks to get data converted to Date or Time in Ruby.
1765
- If the column_name ends in _at (like created_at, updated_at) it's created as a Ruby Time. Else if the
1766
- hours/minutes/seconds are 0, I make it a Ruby Date. Else it's a Ruby Time.
1767
- This is nasty - but if you use Duck Typing you'll probably not care very much.
1768
- In 9i it's tempting to map DATE to Date and TIMESTAMP to Time but I don't think that is
1769
- valid - too many databases use DATE for both.
1770
- Timezones and sub-second precision on timestamps are not supported.
1771
- 3. Default values that are functions (such as "SYSDATE") are not supported. This is a
1772
- restriction of the way active record supports default values.
1773
- 4. Referential integrity constraints are not fully supported. Under at least
1774
- some circumstances, active record appears to delete parent and child records out of
1775
- sequence and out of transaction scope. (Or this may just be a problem of test setup.)
1776
-
1777
- The OCI8 driver can be retrieved from http://rubyforge.org/projects/ruby-oci8/
1778
-
1779
- * Added option :schema_order to the PostgreSQL adapter to support the use of multiple schemas per database #697 [YuriSchimke]
1780
-
1781
- * Optimized the SQL used to generate has_and_belongs_to_many queries by listing the join table first #693 [yerejm]
1782
-
1783
- * Fixed that when using validation macros with a custom message, if you happened to use single quotes in the message string you would get a parsing error #657 [tonka]
1784
-
1785
- * Fixed that Active Record would throw Broken Pipe errors with FCGI when the MySQL connection timed out instead of reconnecting #428 [Nicholas Seckar]
1786
-
1787
- * Added options to specify an SSL connection for MySQL. Define the following attributes in the connection config (config/database.yml in Rails) to use it: sslkey, sslcert, sslca, sslcapath, sslcipher. To use SSL with no client certs, just set :sslca = '/dev/null'. http://dev.mysql.com/doc/mysql/en/secure-connections.html #604 [daniel@nightrunner.com]
1788
-
1789
- * Added automatic dropping/creating of test tables for running the unit tests on all databases #587 [adelle@bullet.net.au]
1790
-
1791
- * Fixed that find_by_* would fail when column names had numbers #670 [demetrius]
1792
-
1793
- * Fixed the SQL Server adapter on a bunch of issues #667 [DeLynn]
1794
-
1795
- 1. Created a new columns method that is much cleaner.
1796
- 2. Corrected a problem with the select and select_all methods
1797
- that didn't account for the LIMIT clause being passed into raw SQL statements.
1798
- 3. Implemented the string_to_time method in order to create proper instances of the time class.
1799
- 4. Added logic to the simplified_type method that allows the database to specify the scale of float data.
1800
- 5. Adjusted the quote_column_name to account for the fact that MS SQL is bothered by a forward slash in the data string.
1801
-
1802
- * Fixed that the dynamic finder like find_all_by_something_boolean(false) didn't work #649 [lmarlow@yahoo.com]
1803
-
1804
- * Added validates_each that validates each specified attribute against a block #610 [Jeremy Kemper]. Example:
1805
-
1806
- class Person < ActiveRecord::Base
1807
- validates_each :first_name, :last_name do |record, attr|
1808
- record.errors.add attr, 'starts with z.' if attr[0] == ?z
1809
- end
1810
- end
1811
-
1812
- * Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [Jeremy Kemper]
1813
-
1814
- * Added that validates_* now accept blocks to perform validations #618 [Tim Bates]. Example:
1815
-
1816
- class Person < ActiveRecord::Base
1817
- validate { |person| person.errors.add("title", "will never be valid") if SHOULD_NEVER_BE_VALID }
1818
- end
1819
-
1820
- * Addded validation for validate all the associated objects before declaring failure with validates_associated #618 [Tim Bates]
1821
-
1822
- * Added keyword-style approach to defining the custom relational bindings #545 [Jamis Buck]. Example:
1823
-
1824
- class Project < ActiveRecord::Base
1825
- primary_key "sysid"
1826
- table_name "XYZ_PROJECT"
1827
- inheritance_column { original_inheritance_column + "_id" }
1828
- end
1829
-
1830
- * Fixed Base#clone for use with PostgreSQL #565 [hanson@surgery.wisc.edu]
1831
-
1832
-
1833
- *1.6.0* (January 25th, 2005)
1834
-
1835
- * Added that has_many association build and create methods can take arrays of record data like Base#create and Base#build to build/create multiple records at once.
1836
-
1837
- * Added that Base#delete and Base#destroy both can take an array of ids to delete/destroy #336
1838
-
1839
- * Added the option of supplying an array of attributes to Base#create, so that multiple records can be created at once.
1840
-
1841
- * Added the option of supplying an array of ids and attributes to Base#update, so that multiple records can be updated at once (inspired by #526/Duane Johnson). Example
1842
-
1843
- people = { 1 => { "first_name" => "David" }, 2 => { "first_name" => "Jeremy"} }
1844
- Person.update(people.keys, people.values)
1845
-
1846
- * Added ActiveRecord::Base.timestamps_gmt that can be set to true to make the automated timestamping use GMT instead of local time #520 [Scott Baron]
1847
-
1848
- * Added that update_all calls sanitize_sql on its updates argument, so stuff like MyRecord.update_all(['time = ?', Time.now]) works #519 [notahat]
1849
-
1850
- * Fixed that the dynamic finders didn't treat nil as a "IS NULL" but rather "= NULL" case #515 [Demetrius]
1851
-
1852
- * Added bind-named arrays for interpolating a group of ids or strings in conditions #528 [Jeremy Kemper]
1853
-
1854
- * Added that has_and_belongs_to_many associations with additional attributes also can be created between unsaved objects and only committed to the database when Base#save is called on the associator #524 [Eric Anderson]
1855
-
1856
- * Fixed that records fetched with piggy-back attributes or through rich has_and_belongs_to_many associations couldn't be saved due to the extra attributes not part of the table #522 [Eric Anderson]
1857
-
1858
- * Added mass-assignment protection for the inheritance column -- regardless of a custom column is used or not
1859
-
1860
- * Fixed that association proxies would fail === tests like PremiumSubscription === @account.subscription
1861
-
1862
- * Fixed that column aliases didn't work as expected with the new MySql411 driver #507 [Demetrius]
1863
-
1864
- * Fixed that find_all would produce invalid sql when called sequentialy #490 [Scott Baron]
1865
-
1866
-
1867
- *1.5.1* (January 18th, 2005)
1868
-
1869
- * Fixed that the belongs_to and has_one proxy would fail a test like 'if project.manager' -- this unfortunately also means that you can't call methods like project.manager.build unless there already is a manager on the project #492 [Tim Bates]
1870
-
1871
- * Fixed that the Ruby/MySQL adapter wouldn't connect if the password was empty #503 [Pelle]
1872
-
1873
-
1874
- *1.5.0* (January 17th, 2005)
1875
-
1876
- * Fixed that unit tests for MySQL are now run as the "rails" user instead of root #455 [Eric Hodel]
1877
-
1878
- * Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]. Example:
1879
-
1880
- class Book < ActiveRecord::Base
1881
- has_many :pages
1882
- belongs_to :library
1883
-
1884
- validates_associated :pages, :library
1885
- end
1886
-
1887
- * Added support for associating unsaved objects #402 [Tim Bates]. Rules that govern this addition:
1888
-
1889
- == Unsaved objects and associations
1890
-
1891
- You can manipulate objects and associations before they are saved to the database, but there is some special behaviour you should be
1892
- aware of, mostly involving the saving of associated objects.
1893
-
1894
- === One-to-one associations
1895
-
1896
- * Assigning an object to a has_one association automatically saves that object, and the object being replaced (if there is one), in
1897
- order to update their primary keys - except if the parent object is unsaved (new_record? == true).
1898
- * If either of these saves fail (due to one of the objects being invalid) the assignment statement returns false and the assignment
1899
- is cancelled.
1900
- * If you wish to assign an object to a has_one association without saving it, use the #association.build method (documented below).
1901
- * Assigning an object to a belongs_to association does not save the object, since the foreign key field belongs on the parent. It does
1902
- not save the parent either.
1903
-
1904
- === Collections
1905
-
1906
- * Adding an object to a collection (has_many or has_and_belongs_to_many) automatically saves that object, except if the parent object
1907
- (the owner of the collection) is not yet stored in the database.
1908
- * If saving any of the objects being added to a collection (via #push or similar) fails, then #push returns false.
1909
- * You can add an object to a collection without automatically saving it by using the #collection.build method (documented below).
1910
- * All unsaved (new_record? == true) members of the collection are automatically saved when the parent is saved.
1911
-
1912
- * Added replace to associations, so you can do project.manager.replace(new_manager) or project.milestones.replace(new_milestones) #402 [Tim Bates]
1913
-
1914
- * Added build and create methods to has_one and belongs_to associations, so you can now do project.manager.build(attributes) #402 [Tim Bates]
1915
-
1916
- * Added that if a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last. #402 [Tim Bates]
1917
-
1918
- * Fixed that Base#== wouldn't work for multiple references to the same unsaved object #402 [Tim Bates]
1919
-
1920
- * Fixed binary support for PostgreSQL #444 [alex@byzantine.no]
1921
-
1922
- * Added a differenciation between AssociationCollection#size and -length. Now AssociationCollection#size returns the size of the
1923
- collection by executing a SELECT COUNT(*) query if the collection hasn't been loaded and calling collection.size if it has. If
1924
- it's more likely than not that the collection does have a size larger than zero and you need to fetch that collection afterwards,
1925
- it'll take one less SELECT query if you use length.
1926
-
1927
- * Added Base#attributes that returns a hash of all the attributes with their names as keys and clones of their objects as values #433 [atyp.de]
1928
-
1929
- * Fixed that foreign keys named the same as the association would cause stack overflow #437 [Eric Anderson]
1930
-
1931
- * Fixed default scope of acts_as_list from "1" to "1 = 1", so it'll work in PostgreSQL (among other places) #427 [Alexey]
1932
-
1933
- * Added Base#reload that reloads the attributes of an object from the database #422 [Andreas Schwarz]
1934
-
1935
- * Added SQLite3 compatibility through the sqlite3-ruby adapter by Jamis Buck #381 [Jeremy Kemper]
1936
-
1937
- * Added support for the new protocol spoken by MySQL 4.1.1+ servers for the Ruby/MySQL adapter that ships with Rails #440 [Matt Mower]
1938
-
1939
- * Added that Observers can use the observes class method instead of overwriting self.observed_class().
1940
-
1941
- Before:
1942
- class ListSweeper < ActiveRecord::Base
1943
- def self.observed_class() [ List, Item ]
1944
- end
1945
-
1946
- After:
1947
- class ListSweeper < ActiveRecord::Base
1948
- observes List, Item
1949
- end
1950
-
1951
- * Fixed that conditions in has_many and has_and_belongs_to_many should be interpolated just like the finder_sql is
1952
-
1953
- * Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name
1954
-
1955
- * Added Base#toggle(attribute) and Base#toggle!(attribute) that makes it easier to flip a switch or flag.
1956
-
1957
- Before: topic.update_attribute(:approved, !approved?)
1958
- After : topic.toggle!(:approved)
1959
-
1960
- * Added Base#increment!(attribute) and Base#decrement!(attribute) that also saves the records. Example:
1961
-
1962
- page.views # => 1
1963
- page.increment!(:views) # executes an UPDATE statement
1964
- page.views # => 2
1965
-
1966
- page.increment(:views).increment!(:views)
1967
- page.views # => 4
1968
-
1969
- * Added Base#increment(attribute) and Base#decrement(attribute) that encapsulates the += 1 and -= 1 patterns.
1970
-
1971
-
1972
- *1.4.0* (January 4th, 2005)
1973
-
1974
- * Added automated optimistic locking if the field <tt>lock_version</tt> is present. Each update to the
1975
- record increments the lock_version column and the locking facilities ensure that records instantiated twice
1976
- will let the last one saved raise a StaleObjectError if the first was also updated. Example:
1977
-
1978
- p1 = Person.find(1)
1979
- p2 = Person.find(1)
1980
-
1981
- p1.first_name = "Michael"
1982
- p1.save
1983
-
1984
- p2.first_name = "should fail"
1985
- p2.save # Raises a ActiveRecord::StaleObjectError
1986
-
1987
- You're then responsible for dealing with the conflict by rescuing the exception and either rolling back, merging,
1988
- or otherwise apply the business logic needed to resolve the conflict.
1989
-
1990
- #384 [Michael Koziarski]
1991
-
1992
- * Added dynamic attribute-based finders as a cleaner way of getting objects by simple queries without turning to SQL.
1993
- They work by appending the name of an attribute to <tt>find_by_</tt>, so you get finders like <tt>Person.find_by_user_name,
1994
- Payment.find_by_transaction_id</tt>. So instead of writing <tt>Person.find_first(["user_name = ?", user_name])</tt>, you just do
1995
- <tt>Person.find_by_user_name(user_name)</tt>.
1996
-
1997
- It's also possible to use multiple attributes in the same find by separating them with "_and_", so you get finders like
1998
- <tt>Person.find_by_user_name_and_password</tt> or even <tt>Payment.find_by_purchaser_and_state_and_country</tt>. So instead of writing
1999
- <tt>Person.find_first(["user_name = ? AND password = ?", user_name, password])</tt>, you just do
2000
- <tt>Person.find_by_user_name_and_password(user_name, password)</tt>.
2001
-
2002
- While primarily a construct for easier find_firsts, it can also be used as a construct for find_all by using calls like
2003
- <tt>Payment.find_all_by_amount(50)</tt> that is turned into <tt>Payment.find_all(["amount = ?", 50])</tt>. This is something not as equally useful,
2004
- though, as it's not possible to specify the order in which the objects are returned.
2005
-
2006
- * Added block-style for callbacks #332 [Jeremy Kemper].
2007
-
2008
- Before:
2009
- before_destroy(Proc.new{ |record| Person.destroy_all "firm_id = #{record.id}" })
2010
-
2011
- After:
2012
- before_destroy { |record| Person.destroy_all "firm_id = #{record.id}" }
2013
-
2014
- * Added :counter_cache option to acts_as_tree that works just like the one you can define on belongs_to #371 [Josh]
2015
-
2016
- * Added Base.default_timezone accessor that determines whether to use Time.local (using :local) or Time.utc (using :utc) when pulling dates
2017
- and times from the database. This is set to :local by default.
2018
-
2019
- * Added the possibility for adapters to overwrite add_limit! to implement a different limiting scheme than "LIMIT X" used by MySQL, PostgreSQL, and SQLite.
2020
-
2021
- * Added the possibility of having objects with acts_as_list created before their scope is available or...
2022
-
2023
- * Added a db2 adapter that only depends on the Ruby/DB2 bindings (http://raa.ruby-lang.org/project/ruby-db2/) #386 [Maik Schmidt]
2024
-
2025
- * Added the final touches to the Microsoft SQL Server adapter by Joey Gibson that makes it suitable for actual use #394 [DeLynn Barry]
2026
-
2027
- * Added that Base#find takes an optional options hash, including :conditions. Base#find_on_conditions deprecated in favor of #find with :conditions #407 [Jeremy Kemper]
2028
-
2029
- * Added HasManyAssociation#count that works like Base#count #413 [intinig]
2030
-
2031
- * Fixed handling of binary content in blobs and similar fields for Ruby/MySQL and SQLite #409 [xal]
2032
-
2033
- * Fixed a bug in the Ruby/MySQL that caused binary content to be escaped badly and come back mangled #405 [Tobias Luetke]
2034
-
2035
- * Fixed that the const_missing autoload assumes the requested constant is set by require_association and calls const_get to retrieve it.
2036
- If require_association did not set the constant then const_get will call const_missing, resulting in an infinite loop #380 [Jeremy Kemper]
2037
-
2038
- * Fixed broken transactions that were actually only running object-level and not db level transactions [andreas]
2039
-
2040
- * Fixed that validates_uniqueness_of used 'id' instead of defined primary key #406
2041
-
2042
- * Fixed that the overwritten respond_to? method didn't take two parameters like the original #391
2043
-
2044
- * Fixed quoting in validates_format_of that would allow some rules to pass regardless of input #390 [Dmitry V. Sabanin]
2045
-
2046
-
2047
- *1.3.0* (December 23, 2004)
2048
-
2049
- * Added a require_association hook on const_missing that makes it possible to use any model class without requiring it first. This makes STI look like:
2050
-
2051
- before:
2052
- require_association 'person'
2053
- class Employee < Person
2054
- end
2055
-
2056
- after:
2057
- class Employee < Person
2058
- end
2059
-
2060
- This also reduces the usefulness of Controller.model in Action Pack to currently only being for documentation purposes.
2061
-
2062
- * Added that Base.update_all and Base.delete_all return an integer of the number of affected rows #341
2063
-
2064
- * Added scope option to validation_uniqueness #349 [Kent Sibilev]
2065
-
2066
- * Added respondence to *_before_type_cast for all attributes to return their string-state before they were type casted by the column type.
2067
- This is helpful for getting "100,000" back on a integer-based validation where the value would normally be "100".
2068
-
2069
- * Added allow_nil options to validates_inclusion_of so that validation is only triggered if the attribute is not nil [what-a-day]
2070
-
2071
- * Added work-around for PostgreSQL and the problem of getting fixtures to be created from id 1 on each test case.
2072
- This only works for auto-incrementing primary keys called "id" for now #359 [Scott Baron]
2073
-
2074
- * Added Base#clear_association_cache to empty all the cached associations #347 [Tobias Luetke]
2075
-
2076
- * Added more informative exceptions in establish_connection #356 [Jeremy Kemper]
2077
-
2078
- * Added Base#update_attributes that'll accept a hash of attributes and save the record (returning true if it passed validation, false otherwise).
2079
-
2080
- Before:
2081
- person.attributes = @params["person"]
2082
- person.save
2083
-
2084
- Now:
2085
- person.update_attributes(@params["person"])
2086
-
2087
- * Added Base.destroy and Base.delete to remove records without holding a reference to them first.
2088
-
2089
- * Added that query benchmarking will only happen if its going to be logged anyway #344
2090
-
2091
- * Added higher_item and lower_item as public methods for acts_as_list #342 [Tobias Luetke]
2092
-
2093
- * Fixed that options[:counter_sql] was overwritten with interpolated sql rather than original sql #355 [Jeremy Kemper]
2094
-
2095
- * Fixed that overriding an attribute's accessor would be disregarded by add_on_empty and add_on_boundary_breaking because they simply used
2096
- the attributes[] hash instead of checking for @base.respond_to?(attr.to_s). [Marten]
2097
-
2098
- * Fixed that Base.table_name would expect a parameter when used in has_and_belongs_to_many joins [Anna Lissa Cruz]
2099
-
2100
- * Fixed that nested transactions now work by letting the outer most transaction have the responsibilty of starting and rolling back the transaction.
2101
- If any of the inner transactions swallow the exception raised, though, the transaction will not be rolled back. So always let the transaction
2102
- bubble up even when you've dealt with local issues. Closes #231 and #340.
2103
-
2104
- * Fixed validates_{confirmation,acceptance}_of to only happen when the virtual attributes are not nil #348 [dpiddy@gmail.com]
2105
-
2106
- * Changed the interface on AbstractAdapter to require that adapters return the number of affected rows on delete and update operations.
2107
-
2108
- * Fixed the automated timestamping feature when running under Rails' development environment that resets the inheritable attributes on each request.
2109
-
2110
-
2111
-
2112
- *1.2.0*
2113
-
2114
- * Added Base.validates_inclusion_of that validates whether the value of the specified attribute is available in a particular enumerable
2115
- object. [what-a-day]
2116
-
2117
- class Person < ActiveRecord::Base
2118
- validates_inclusion_of :gender, :in=>%w( m f ), :message=>"woah! what are you then!??!!"
2119
- validates_inclusion_of :age, :in=>0..99
2120
- end
2121
-
2122
- * Added acts_as_list that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom. [Tobias Luetke] Example:
2123
-
2124
- class TodoItem < ActiveRecord::Base
2125
- acts_as_list :scope => :todo_list_id
2126
- belongs_to :todo_list
2127
- end
2128
-
2129
- * Added acts_as_tree that can decorates an existing class with a many to many relationship with itself. Perfect for categories in
2130
- categories and the likes. [Tobias Luetke]
2131
-
2132
- * Added that Active Records will automatically record creation and/or update timestamps of database objects if fields of the names
2133
- created_at/created_on or updated_at/updated_on are present. [Tobias Luetke]
2134
-
2135
- * Added Base.default_error_messages as a hash of all the error messages used in the validates_*_of so they can be changed in one place [Tobias Luetke]
2136
-
2137
- * Added automatic transaction block around AssociationCollection.<<, AssociationCollection.delete, and AssociationCollection.destroy_all
2138
-
2139
- * Fixed that Base#find will return an array if given an array -- regardless of the number of elements #270 [Marten]
2140
-
2141
- * Fixed that has_and_belongs_to_many would generate bad sql when naming conventions differed from using vanilla "id" everywhere [RedTerror]
2142
-
2143
- * Added a better exception for when a type column is used in a table without the intention of triggering single-table inheritance. Example:
2144
-
2145
- ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'bad_class!'.
2146
- This error is raised because the column 'type' is reserved for storing the class in case of inheritance.
2147
- Please rename this column if you didn't intend it to be used for storing the inheritance class or
2148
- overwrite Company.inheritance_column to use another column for that information.
2149
-
2150
- * Added that single-table inheritance will only kick in if the inheritance_column (by default "type") is present. Otherwise, inheritance won't
2151
- have any magic side effects.
2152
-
2153
- * Added the possibility of marking fields as being in error without adding a message (using nil) to it that'll get displayed wth full_messages #208 [mjobin]
2154
-
2155
- * Fixed Base.errors to be indifferent as to whether strings or symbols are used. Examples:
2156
-
2157
- Before:
2158
- errors.add(:name, "must be shorter") if name.size > 10
2159
- errors.on(:name) # => "must be shorter"
2160
- errors.on("name") # => nil
2161
-
2162
- After:
2163
- errors.add(:name, "must be shorter") if name.size > 10
2164
- errors.on(:name) # => "must be shorter"
2165
- errors.on("name") # => "must be shorter"
2166
-
2167
- * Added Base.validates_format_of that Validates whether the value of the specified attribute is of the correct form by matching
2168
- it against the regular expression provided. [Marcel]
2169
-
2170
- class Person < ActiveRecord::Base
2171
- validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/, :on => :create
2172
- end
2173
-
2174
- * Added Base.validates_length_of that delegates to add_on_boundary_breaking #312 [Tobias Luetke]. Example:
2175
-
2176
- Validates that the specified attribute matches the length restrictions supplied in either:
2177
-
2178
- - configuration[:minimum]
2179
- - configuration[:maximum]
2180
- - configuration[:is]
2181
- - configuration[:within] (aka. configuration[:in])
2182
-
2183
- Only one option can be used at a time.
2184
-
2185
- class Person < ActiveRecord::Base
2186
- validates_length_of :first_name, :maximum=>30
2187
- validates_length_of :last_name, :maximum=>30, :message=>"less than %d if you don't mind"
2188
- validates_length_of :user_name, :within => 6..20, :too_long => "pick a shorter name", :too_short => "pick a longer name"
2189
- validates_length_of :fav_bra_size, :minimum=>1, :too_short=>"please enter at least %d character"
2190
- validates_length_of :smurf_leader, :is=>4, :message=>"papa is spelled with %d characters... don't play me."
2191
- end
2192
-
2193
- * Added Base.validate_presence as an alternative to implementing validate and doing errors.add_on_empty yourself.
2194
-
2195
- * Added Base.validates_uniqueness_of that alidates whether the value of the specified attributes are unique across the system.
2196
- Useful for making sure that only one user can be named "davidhh".
2197
-
2198
- class Person < ActiveRecord::Base
2199
- validates_uniqueness_of :user_name
2200
- end
2201
-
2202
- When the record is created, a check is performed to make sure that no record exist in the database with the given value for the specified
2203
- attribute (that maps to a column). When the record is updated, the same check is made but disregarding the record itself.
2204
-
2205
-
2206
- * Added Base.validates_confirmation_of that encapsulates the pattern of wanting to validate a password or email address field with a confirmation. Example:
2207
-
2208
- Model:
2209
- class Person < ActiveRecord::Base
2210
- validates_confirmation_of :password
2211
- end
2212
-
2213
- View:
2214
- <%= password_field "person", "password" %>
2215
- <%= password_field "person", "password_confirmation" %>
2216
-
2217
- The person has to already have a password attribute (a column in the people table), but the password_confirmation is virtual.
2218
- It exists only as an in-memory variable for validating the password. This check is performed both on create and update.
2219
-
2220
-
2221
- * Added Base.validates_acceptance_of that encapsulates the pattern of wanting to validate the acceptance of a terms of service check box (or similar agreement). Example:
2222
-
2223
- class Person < ActiveRecord::Base
2224
- validates_acceptance_of :terms_of_service
2225
- end
2226
-
2227
- The terms_of_service attribute is entirely virtual. No database column is needed. This check is performed both on create and update.
2228
-
2229
- NOTE: The agreement is considered valid if it's set to the string "1". This makes it easy to relate it to an HTML checkbox.
2230
-
2231
-
2232
- * Added validation macros to make the stackable just like the lifecycle callbacks. Examples:
2233
-
2234
- class Person < ActiveRecord::Base
2235
- validate { |record| record.errors.add("name", "too short") unless name.size > 10 }
2236
- validate { |record| record.errors.add("name", "too long") unless name.size < 20 }
2237
- validate_on_create :validate_password
2238
-
2239
- private
2240
- def validate_password
2241
- errors.add("password", "too short") unless password.size > 6
2242
- end
2243
- end
2244
-
2245
- * Added the option for sanitizing find_by_sql and the offset parts in regular finds [Sam Stephenson]. Examples:
2246
-
2247
- Project.find_all ["category = ?", category_name], "created ASC", ["? OFFSET ?", 15, 20]
2248
- Post.find_by_sql ["SELECT * FROM posts WHERE author = ? AND created > ?", author_id, start_date]
2249
-
2250
- * Fixed value quoting in all generated SQL statements, so that integers are not surrounded in quotes and that all sanitation are happening
2251
- through the database's own quoting routine. This should hopefully make it lots easier for new adapters that doesn't accept '1' for integer
2252
- columns.
2253
-
2254
- * Fixed has_and_belongs_to_many guessing of foreign key so that keys are generated correctly for models like SomeVerySpecialClient
2255
- [Florian Weber]
2256
-
2257
- * Added counter_sql option for has_many associations [Jeremy Kemper]. Documentation:
2258
-
2259
- <tt>:counter_sql</tt> - specify a complete SQL statement to fetch the size of the association. If +:finder_sql+ is
2260
- specified but +:counter_sql+, +:counter_sql+ will be generated by replacing SELECT ... FROM with SELECT COUNT(*) FROM.
2261
-
2262
- * Fixed that methods wrapped in callbacks still return their original result #260 [Jeremy Kemper]
2263
-
2264
- * Fixed the Inflector to handle the movie/movies pair correctly #261 [Scott Baron]
2265
-
2266
- * Added named bind-style variable interpolation #281 [Michael Koziarski]. Example:
2267
-
2268
- Person.find(["id = :id and first_name = :first_name", { :id => 5, :first_name = "bob' or 1=1" }])
2269
-
2270
- * Added bind-style variable interpolation for the condition arrays that uses the adapter's quote method [Michael Koziarski]
2271
-
2272
- Before:
2273
- find_first([ "user_name = '%s' AND password = '%s'", user_name, password ])]
2274
- find_first([ "firm_id = %s", firm_id ])] # unsafe!
2275
-
2276
- After:
2277
- find_first([ "user_name = ? AND password = ?", user_name, password ])]
2278
- find_first([ "firm_id = ?", firm_id ])]
2279
-
2280
- * Added CSV format for fixtures #272 [what-a-day]. (See the new and expanded documentation on fixtures for more information)
2281
-
2282
- * Fixed fixtures using primary key fields called something else than "id" [dave]
2283
-
2284
- * Added proper handling of time fields that are turned into Time objects with the dummy date of 2000/1/1 [HariSeldon]
2285
-
2286
- * Added reverse order of deleting fixtures, so referential keys can be maintained #247 [Tim Bates]
2287
-
2288
- * Added relative path search for sqlite dbfiles in database.yml (if RAILS_ROOT is defined) #233 [Jeremy Kemper]
2289
-
2290
- * Added option to establish_connection where you'll be able to leave out the parameter to have it use the RAILS_ENV environment variable
2291
-
2292
- * Fixed problems with primary keys and postgresql sequences (#230) [Tim Bates]
2293
-
2294
- * Added reloading for associations under cached environments like FastCGI and mod_ruby. This makes it possible to use those environments for development.
2295
- This is turned on by default, but can be turned off with ActiveRecord::Base.reload_dependencies = false in production environments.
2296
-
2297
- NOTE: This will only have an effect if you let the associations manage the requiring of model classes. All libraries loaded through
2298
- require will be "forever" cached. You can, however, use ActiveRecord::Base.load_or_require("library") to get this behavior outside of the
2299
- auto-loading associations.
2300
-
2301
- * Added ERB capabilities to the fixture files for dynamic fixture generation. You don't need to do anything, just include ERB blocks like:
2302
-
2303
- david:
2304
- id: 1
2305
- name: David
2306
-
2307
- jamis:
2308
- id: 2
2309
- name: Jamis
2310
-
2311
- <% for digit in 3..10 %>
2312
- dev_<%= digit %>:
2313
- id: <%= digit %>
2314
- name: fixture_<%= digit %>
2315
- <% end %>
2316
-
2317
- * Changed the yaml fixture searcher to look in the root of the fixtures directory, so when you before could have something like:
2318
-
2319
- fixtures/developers/fixtures.yaml
2320
- fixtures/accounts/fixtures.yaml
2321
-
2322
- ...you now need to do:
2323
-
2324
- fixtures/developers.yaml
2325
- fixtures/accounts.yaml
2326
-
2327
- * Changed the fixture format from:
2328
-
2329
- name: david
2330
- data:
2331
- id: 1
2332
- name: David Heinemeier Hansson
2333
- birthday: 1979-10-15
2334
- profession: Systems development
2335
- ---
2336
- name: steve
2337
- data:
2338
- id: 2
2339
- name: Steve Ross Kellock
2340
- birthday: 1974-09-27
2341
- profession: guy with keyboard
2342
-
2343
- ...to:
2344
-
2345
- david:
2346
- id: 1
2347
- name: David Heinemeier Hansson
2348
- birthday: 1979-10-15
2349
- profession: Systems development
2350
-
2351
- steve:
2352
- id: 2
2353
- name: Steve Ross Kellock
2354
- birthday: 1974-09-27
2355
- profession: guy with keyboard
2356
-
2357
- The change is NOT backwards compatible. Fixtures written in the old YAML style needs to be rewritten!
2358
-
2359
- * All associations will now attempt to require the classes that they associate to. Relieving the need for most explicit 'require' statements.
2360
-
2361
-
2362
- *1.1.0* (34)
2363
-
2364
- * Added automatic fixture setup and instance variable availability. Fixtures can also be automatically
2365
- instantiated in instance variables relating to their names using the following style:
2366
-
2367
- class FixturesTest < Test::Unit::TestCase
2368
- fixtures :developers # you can add more with comma separation
2369
-
2370
- def test_developers
2371
- assert_equal 3, @developers.size # the container for all the fixtures is automatically set
2372
- assert_kind_of Developer, @david # works like @developers["david"].find
2373
- assert_equal "David Heinemeier Hansson", @david.name
2374
- end
2375
- end
2376
-
2377
- * Added HasAndBelongsToManyAssociation#push_with_attributes(object, join_attributes) that can create associations in the join table with additional
2378
- attributes. This is really useful when you have information that's only relevant to the join itself, such as a "added_on" column for an association
2379
- between post and category. The added attributes will automatically be injected into objects retrieved through the association similar to the piggy-back
2380
- approach:
2381
-
2382
- post.categories.push_with_attributes(category, :added_on => Date.today)
2383
- post.categories.first.added_on # => Date.today
2384
-
2385
- NOTE: The categories table doesn't have a added_on column, it's the categories_post join table that does!
2386
-
2387
- * Fixed that :exclusively_dependent and :dependent can't be activated at the same time on has_many associations [Jeremy Kemper]
2388
-
2389
- * Fixed that database passwords couldn't be all numeric [Jeremy Kemper]
2390
-
2391
- * Fixed that calling id would create the instance variable for new_records preventing them from being saved correctly [Jeremy Kemper]
2392
-
2393
- * Added sanitization feature to HasManyAssociation#find_all so it works just like Base.find_all [Sam Stephenson/bitsweat]
2394
-
2395
- * Added that you can pass overlapping ids to find without getting duplicated records back [Jeremy Kemper]
2396
-
2397
- * Added that Base.benchmark returns the result of the block [Jeremy Kemper]
2398
-
2399
- * Fixed problem with unit tests on Windows with SQLite [paterno]
2400
-
2401
- * Fixed that quotes would break regular non-yaml fixtures [Dmitry Sabanin/daft]
2402
-
2403
- * Fixed fixtures on windows with line endings cause problems under unix / mac [Tobias Luetke]
2404
-
2405
- * Added HasAndBelongsToManyAssociation#find(id) that'll search inside the collection and find the object or record with that id
2406
-
2407
- * Added :conditions option to has_and_belongs_to_many that works just like the one on all the other associations
2408
-
2409
- * Added AssociationCollection#clear to remove all associations from has_many and has_and_belongs_to_many associations without destroying the records [geech]
2410
-
2411
- * Added type-checking and remove in 1-instead-of-N sql statements to AssociationCollection#delete [geech]
2412
-
2413
- * Added a return of self to AssociationCollection#<< so appending can be chained, like project << Milestone.create << Milestone.create [geech]
2414
-
2415
- * Added Base#hash and Base#eql? which means that all of the equality using features of array and other containers now works:
2416
-
2417
- [ Person.find(1), Person.find(2), Person.find(3) ] & [ Person.find(1), Person.find(4) ] # => [ Person.find(1) ]
2418
-
2419
- * Added :uniq as an option to has_and_belongs_to_many which will automatically ensure that AssociateCollection#uniq is called
2420
- before pulling records out of the association. This is especially useful for three-way (and above) has_and_belongs_to_many associations.
2421
-
2422
- * Added AssociateCollection#uniq which is especially useful for has_and_belongs_to_many associations that can include duplicates,
2423
- which is common on associations that also use metadata. Usage: post.categories.uniq
2424
-
2425
- * Fixed respond_to? to use a subclass specific hash instead of an Active Record-wide one
2426
-
2427
- * Fixed has_and_belongs_to_many to treat associations between classes in modules properly [Florian Weber]
2428
-
2429
- * Added a NoMethod exception to be raised when query and writer methods are called for attributes that doesn't exist [geech]
2430
-
2431
- * Added a more robust version of Fixtures that throws meaningful errors when on formatting issues [geech]
2432
-
2433
- * Added Base#transaction as a compliment to Base.transaction for prettier use in instance methods [geech]
2434
-
2435
- * Improved the speed of respond_to? by placing the dynamic methods lookup table in a hash [geech]
2436
-
2437
- * Added that any additional fields added to the join table in a has_and_belongs_to_many association
2438
- will be placed as attributes when pulling records out through has_and_belongs_to_many associations.
2439
- This is helpful when have information about the association itself that you want available on retrival.
2440
-
2441
- * Added better loading exception catching and RubyGems retries to the database adapters [alexeyv]
2442
-
2443
- * Fixed bug with per-model transactions [daniel]
2444
-
2445
- * Fixed Base#transaction so that it returns the result of the last expression in the transaction block [alexeyv]
2446
-
2447
- * Added Fixture#find to find the record corresponding to the fixture id. The record
2448
- class name is guessed by using Inflector#classify (also new) on the fixture directory name.
2449
-
2450
- Before: Document.find(@documents["first"]["id"])
2451
- After : @documents["first"].find
2452
-
2453
- * Fixed that the table name part of column names ("TABLE.COLUMN") wasn't removed properly [Andreas Schwarz]
2454
-
2455
- * Fixed a bug with Base#size when a finder_sql was used that didn't capitalize SELECT and FROM [geech]
2456
-
2457
- * Fixed quoting problems on SQLite by adding quote_string to the AbstractAdapter that can be overwritten by the concrete
2458
- adapters for a call to the dbm. [Andreas Schwarz]
2459
-
2460
- * Removed RubyGems backup strategy for requiring SQLite-adapter -- if people want to use gems, they're already doing it with AR.
2461
-
2462
-
2463
- *1.0.0 (35)*
2464
-
2465
- * Added OO-style associations methods [Florian Weber]. Examples:
2466
-
2467
- Project#milestones_count => Project#milestones.size
2468
- Project#build_to_milestones => Project#milestones.build
2469
- Project#create_for_milestones => Project#milestones.create
2470
- Project#find_in_milestones => Project#milestones.find
2471
- Project#find_all_in_milestones => Project#milestones.find_all
2472
-
2473
- * Added serialize as a new class method to control when text attributes should be YAMLized or not. This means that automated
2474
- serialization of hashes, arrays, and so on WILL NO LONGER HAPPEN (#10). You need to do something like this:
2475
-
2476
- class User < ActiveRecord::Base
2477
- serialize :settings
2478
- end
2479
-
2480
- This will assume that settings is a text column and will now YAMLize any object put in that attribute. You can also specify
2481
- an optional :class_name option that'll raise an exception if a serialized object is retrieved as a descendent of a class not in
2482
- the hierarchy. Example:
2483
-
2484
- class User < ActiveRecord::Base
2485
- serialize :settings, :class_name => "Hash"
2486
- end
2487
-
2488
- user = User.create("settings" => %w( one two three ))
2489
- User.find(user.id).settings # => raises SerializationTypeMismatch
2490
-
2491
- * Added the option to connect to a different database for one model at a time. Just call establish_connection on the class
2492
- you want to have connected to another database than Base. This will automatically also connect decendents of that class
2493
- to the different database [Renald Buter].
2494
-
2495
- * Added transactional protection for Base#save. Validations can now check for values knowing that it happens in a transaction and callbacks
2496
- can raise exceptions knowing that the save will be rolled back. [Suggested by Alexey Verkhovsky]
2497
-
2498
- * Added column name quoting so reserved words, such as "references", can be used as column names [Ryan Platte]
2499
-
2500
- * Added the possibility to chain the return of what happened inside a logged block [geech]:
2501
-
2502
- This now works:
2503
- log { ... }.map { ... }
2504
-
2505
- Instead of doing:
2506
- result = []
2507
- log { result = ... }
2508
- result.map { ... }
2509
-
2510
- * Added "socket" option for the MySQL adapter, so you can change it to something else than "/tmp/mysql.sock" [Anna Lissa Cruz]
2511
-
2512
- * Added respond_to? answers for all the attribute methods. So if Person has a name attribute retrieved from the table schema,
2513
- person.respond_to? "name" will return true.
2514
-
2515
- * Added Base.benchmark which can be used to aggregate logging and benchmark, so you can measure and represent multiple statements in a single block.
2516
- Usage (hides all the SQL calls for the individual actions and calculates total runtime for them all):
2517
-
2518
- Project.benchmark("Creating project") do
2519
- project = Project.create("name" => "stuff")
2520
- project.create_manager("name" => "David")
2521
- project.milestones << Milestone.find_all
2522
- end
2523
-
2524
- * Added logging of invalid SQL statements [Suggested by Daniel Von Fange]
2525
-
2526
- * Added alias Errors#[] for Errors#on, so you can now say person.errors["name"] to retrieve the errors for name [Andreas Schwarz]
2527
-
2528
- * Added RubyGems require attempt if sqlite-ruby is not available through regular methods.
2529
-
2530
- * Added compatibility with 2.x series of sqlite-ruby drivers. [Jamis Buck]
2531
-
2532
- * Added type safety for association assignments, so a ActiveRecord::AssociationTypeMismatch will be raised if you attempt to
2533
- assign an object that's not of the associated class. This cures the problem with nil giving id = 4 and fixnums giving id = 1 on
2534
- mistaken association assignments. [Reported by Andreas Schwarz]
2535
-
2536
- * Added the option to keep many fixtures in one single YAML document [what-a-day]
2537
-
2538
- * Added the class method "inheritance_column" that can be overwritten to return the name of an alternative column than "type" for storing
2539
- the type for inheritance hierarchies. [Dave Steinberg]
2540
-
2541
- * Added [] and []= as an alternative way to access attributes when the regular methods have been overwritten [Dave Steinberg]
2542
-
2543
- * Added the option to observer more than one class at the time by specifying observed_class as an array
2544
-
2545
- * Added auto-id propagation support for tables with arbitrary primary keys that have autogenerated sequences associated with them
2546
- on PostgreSQL. [Dave Steinberg]
2547
-
2548
- * Changed that integer and floats set to "" through attributes= remain as NULL. This was especially a problem for scaffolding and postgresql. (#49)
2549
-
2550
- * Changed the MySQL Adapter to rely on MySQL for its defaults for socket, host, and port [Andreas Schwarz]
2551
-
2552
- * Changed ActionControllerError to decent from StandardError instead of Exception. It can now be caught by a generic rescue.
2553
-
2554
- * Changed class inheritable attributes to not use eval [Caio Chassot]
2555
-
2556
- * Changed Errors#add to now use "invalid" as the default message instead of true, which means full_messages work with those [Marcel Molina Jr]
2557
-
2558
- * Fixed spelling on Base#add_on_boundry_breaking to Base#add_on_boundary_breaking (old naming still works) [Marcel Molina Jr.]
2559
-
2560
- * Fixed that entries in the has_and_belongs_to_many join table didn't get removed when an associated object was destroyed.
2561
-
2562
- * Fixed unnecessary calls to SET AUTOCOMMIT=0/1 for MySQL adapter [Andreas Schwarz]
2563
-
2564
- * Fixed PostgreSQL defaults are now handled gracefully [Dave Steinberg]
2565
-
2566
- * Fixed increment/decrement_counter are now atomic updates [Andreas Schwarz]
2567
-
2568
- * Fixed the problems the Inflector had turning Attachment into attuchments and Cases into Casis [radsaq/Florian Gross]
2569
-
2570
- * Fixed that cloned records would point attribute references on the parent object [Andreas Schwarz]
2571
-
2572
- * Fixed SQL for type call on inheritance hierarchies [Caio Chassot]
2573
-
2574
- * Fixed bug with typed inheritance [Florian Weber]
2575
-
2576
- * Fixed a bug where has_many collection_count wouldn't use the conditions specified for that association
2577
-
2578
-
2579
- *0.9.5*
2580
-
2581
- * Expanded the table_name guessing rules immensely [Florian Green]. Documentation:
2582
-
2583
- Guesses the table name (in forced lower-case) based on the name of the class in the inheritance hierarchy descending
2584
- directly from ActiveRecord. So if the hierarchy looks like: Reply < Message < ActiveRecord, then Message is used
2585
- to guess the table name from even when called on Reply. The guessing rules are as follows:
2586
- * Class name ends in "x", "ch" or "ss": "es" is appended, so a Search class becomes a searches table.
2587
- * Class name ends in "y" preceded by a consonant or "qu": The "y" is replaced with "ies",
2588
- so a Category class becomes a categories table.
2589
- * Class name ends in "fe": The "fe" is replaced with "ves", so a Wife class becomes a wives table.
2590
- * Class name ends in "lf" or "rf": The "f" is replaced with "ves", so a Half class becomes a halves table.
2591
- * Class name ends in "person": The "person" is replaced with "people", so a Salesperson class becomes a salespeople table.
2592
- * Class name ends in "man": The "man" is replaced with "men", so a Spokesman class becomes a spokesmen table.
2593
- * Class name ends in "sis": The "i" is replaced with an "e", so a Basis class becomes a bases table.
2594
- * Class name ends in "tum" or "ium": The "um" is replaced with an "a", so a Datum class becomes a data table.
2595
- * Class name ends in "child": The "child" is replaced with "children", so a NodeChild class becomes a node_children table.
2596
- * Class name ends in an "s": No additional characters are added or removed.
2597
- * Class name doesn't end in "s": An "s" is appended, so a Comment class becomes a comments table.
2598
- * Class name with word compositions: Compositions are underscored, so CreditCard class becomes a credit_cards table.
2599
- Additionally, the class-level table_name_prefix is prepended to the table_name and the table_name_suffix is appended.
2600
- So if you have "myapp_" as a prefix, the table name guess for an Account class becomes "myapp_accounts".
2601
-
2602
- You can also overwrite this class method to allow for unguessable links, such as a Mouse class with a link to a
2603
- "mice" table. Example:
2604
-
2605
- class Mouse < ActiveRecord::Base
2606
- def self.table_name() "mice" end
2607
- end
2608
-
2609
- This conversion is now done through an external class called Inflector residing in lib/active_record/support/inflector.rb.
2610
-
2611
- * Added find_all_in_collection to has_many defined collections. Works like this:
2612
-
2613
- class Firm < ActiveRecord::Base
2614
- has_many :clients
2615
- end
2616
-
2617
- firm.id # => 1
2618
- firm.find_all_in_clients "revenue > 1000" # SELECT * FROM clients WHERE firm_id = 1 AND revenue > 1000
2619
-
2620
- [Requested by Dave Thomas]
2621
-
2622
- * Fixed finders for inheritance hierarchies deeper than one level [Florian Weber]
2623
-
2624
- * Added add_on_boundry_breaking to errors to accompany add_on_empty as a default validation method. It's used like this:
2625
-
2626
- class Person < ActiveRecord::Base
2627
- protected
2628
- def validation
2629
- errors.add_on_boundry_breaking "password", 3..20
2630
- end
2631
- end
2632
-
2633
- This will add an error to the tune of "is too short (minimum is 3 characters)" or "is too long (minimum is 20 characters)" if
2634
- the password is outside the boundry. The messages can be changed by passing a third and forth parameter as message strings.
2635
-
2636
- * Implemented a clone method that works properly with AR. It returns a clone of the record that
2637
- hasn't been assigned an id yet and is treated as a new record.
2638
-
2639
- * Allow for domain sockets in PostgreSQL by not assuming localhost when no host is specified [Scott Barron]
2640
-
2641
- * Fixed that bignums are saved properly instead of attempted to be YAMLized [Andreas Schwartz]
2642
-
2643
- * Fixed a bug in the GEM where the rdoc options weren't being passed according to spec [Chad Fowler]
2644
-
2645
- * Fixed a bug with the exclusively_dependent option for has_many
2646
-
2647
-
2648
- *0.9.4*
2649
-
2650
- * Correctly guesses the primary key when the class is inside a module [Dave Steinberg].
2651
-
2652
- * Added [] and []= as alternatives to read_attribute and write_attribute [Dave Steinberg]
2653
-
2654
- * has_and_belongs_to_many now accepts an :order key to determine in which order the collection is returned [radsaq].
2655
-
2656
- * The ids passed to find and find_on_conditions are now automatically sanitized.
2657
-
2658
- * Added escaping of plings in YAML content.
2659
-
2660
- * Multi-parameter assigns where all the parameters are empty will now be set to nil instead of a new instance of their class.
2661
-
2662
- * Proper type within an inheritance hierarchy is now ensured already at object initialization (instead of first at create)
2663
-
2664
-
2665
- *0.9.3*
2666
-
2667
- * Fixed bug with using a different primary key name together with has_and_belongs_to_many [Investigation by Scott]
2668
-
2669
- * Added :exclusively_dependent option to the has_many association macro. The doc reads:
2670
-
2671
- If set to true all the associated object are deleted in one SQL statement without having their
2672
- before_destroy callback run. This should only be used on associations that depend solely on
2673
- this class and don't need to do any clean-up in before_destroy. The upside is that it's much
2674
- faster, especially if there's a counter_cache involved.
2675
-
2676
- * Added :port key to connection options, so the PostgreSQL and MySQL adapters can connect to a database server
2677
- running on another port than the default.
2678
-
2679
- * Converted the new natural singleton methods that prevented AR objects from being saved by PStore
2680
- (and hence be placed in a Rails session) to a module. [Florian Weber]
2681
-
2682
- * Fixed the use of floats (was broken since 0.9.0+)
2683
-
2684
- * Fixed PostgreSQL adapter so default values are displayed properly when used in conjunction with
2685
- Action Pack scaffolding.
2686
-
2687
- * Fixed booleans support for PostgreSQL (use real true/false on boolean fields instead of 0/1 on tinyints) [radsaq]
2688
-
2689
-
2690
- *0.9.2*
2691
-
2692
- * Added static method for instantly updating a record
2693
-
2694
- * Treat decimal and numeric as Ruby floats [Andreas Schwartz]
2695
-
2696
- * Treat chars as Ruby strings (fixes problem for Action Pack form helpers too)
2697
-
2698
- * Removed debugging output accidently left in (which would screw web applications)
2699
-
2700
-
2701
- *0.9.1*
2702
-
2703
- * Added MIT license
2704
-
2705
- * Added natural object-style assignment for has_and_belongs_to_many associations. Consider the following model:
2706
-
2707
- class Event < ActiveRecord::Base
2708
- has_one_and_belongs_to_many :sponsors
2709
- end
2710
-
2711
- class Sponsor < ActiveRecord::Base
2712
- has_one_and_belongs_to_many :sponsors
2713
- end
2714
-
2715
- Earlier, you'd have to use synthetic methods for creating associations between two objects of the above class:
2716
-
2717
- roskilde_festival.add_to_sponsors(carlsberg)
2718
- roskilde_festival.remove_from_sponsors(carlsberg)
2719
-
2720
- nike.add_to_events(world_cup)
2721
- nike.remove_from_events(world_cup)
2722
-
2723
- Now you can use regular array-styled methods:
2724
-
2725
- roskilde_festival.sponsors << carlsberg
2726
- roskilde_festival.sponsors.delete(carlsberg)
2727
-
2728
- nike.events << world_cup
2729
- nike.events.delete(world_cup)
2730
-
2731
- * Added delete method for has_many associations. Using this will nullify an association between the has_many and the belonging
2732
- object by setting the foreign key to null. Consider this model:
2733
-
2734
- class Post < ActiveRecord::Base
2735
- has_many :comments
2736
- end
2737
-
2738
- class Comment < ActiveRecord::Base
2739
- belongs_to :post
2740
- end
2741
-
2742
- You could do something like:
2743
-
2744
- funny_comment.has_post? # => true
2745
- announcement.comments.delete(funny_comment)
2746
- funny_comment.has_post? # => false
2747
-
2748
-
2749
- *0.9.0*
2750
-
2751
- * Active Record is now thread safe! (So you can use it with Cerise and WEBrick applications)
2752
- [Implementation idea by Michael Neumann, debugging assistance by Jamis Buck]
2753
-
2754
- * Improved performance by roughly 400% on a basic test case of pulling 100 records and querying one attribute.
2755
- This brings the tax for using Active Record instead of "riding on the metal" (using MySQL-ruby C-driver directly) down to ~50%.
2756
- Done by doing lazy type conversions and caching column information on the class-level.
2757
-
2758
- * Added callback objects and procs as options for implementing the target for callback macros.
2759
-
2760
- * Added "counter_cache" option to belongs_to that automates the usage of increment_counter and decrement_counter. Consider:
2761
-
2762
- class Post < ActiveRecord::Base
2763
- has_many :comments
2764
- end
2765
-
2766
- class Comment < ActiveRecord::Base
2767
- belongs_to :post
2768
- end
2769
-
2770
- Iterating over 100 posts like this:
2771
-
2772
- <% for post in @posts %>
2773
- <%= post.title %> has <%= post.comments_count %> comments
2774
- <% end %>
2775
-
2776
- Will generate 100 SQL count queries -- one for each call to post.comments_count. If you instead add a "comments_count" int column
2777
- to the posts table and rewrite the comments association macro with:
2778
-
2779
- class Comment < ActiveRecord::Base
2780
- belongs_to :post, :counter_cache => true
2781
- end
2782
-
2783
- Those 100 SQL count queries will be reduced to zero. Beware that counter caching is only appropriate for objects that begin life
2784
- with the object it's specified to belong with and is destroyed like that as well. Typically objects where you would also specify
2785
- :dependent => true. If your objects switch from one belonging to another (like a post that can be move from one category to another),
2786
- you'll have to manage the counter yourself.
2787
-
2788
- * Added natural object-style assignment for has_one and belongs_to associations. Consider the following model:
2789
-
2790
- class Project < ActiveRecord::Base
2791
- has_one :manager
2792
- end
2793
-
2794
- class Manager < ActiveRecord::Base
2795
- belongs_to :project
2796
- end
2797
-
2798
- Earlier, assignments would work like following regardless of which way the assignment told the best story:
2799
-
2800
- active_record.manager_id = david.id
2801
-
2802
- Now you can do it either from the belonging side:
2803
-
2804
- david.project = active_record
2805
-
2806
- ...or from the having side:
2807
-
2808
- active_record.manager = david
2809
-
2810
- If the assignment happens from the having side, the assigned object is automatically saved. So in the example above, the
2811
- project_id attribute on david would be set to the id of active_record, then david would be saved.
2812
-
2813
- * Added natural object-style assignment for has_many associations [Florian Weber]. Consider the following model:
2814
-
2815
- class Project < ActiveRecord::Base
2816
- has_many :milestones
2817
- end
2818
-
2819
- class Milestone < ActiveRecord::Base
2820
- belongs_to :project
2821
- end
2822
-
2823
- Earlier, assignments would work like following regardless of which way the assignment told the best story:
2824
-
2825
- deadline.project_id = active_record.id
2826
-
2827
- Now you can do it either from the belonging side:
2828
-
2829
- deadline.project = active_record
2830
-
2831
- ...or from the having side:
2832
-
2833
- active_record.milestones << deadline
2834
-
2835
- The milestone is automatically saved with the new foreign key.
2836
-
2837
- * API CHANGE: Attributes for text (or blob or similar) columns will now have unknown classes stored using YAML instead of using
2838
- to_s. (Known classes that won't be yamelized are: String, NilClass, TrueClass, FalseClass, Fixnum, Date, and Time).
2839
- Likewise, data pulled out of text-based attributes will be attempted converged using Yaml if they have the "--- " header.
2840
- This was primarily done to be enable the storage of hashes and arrays without wrapping them in aggregations, so now you can do:
2841
-
2842
- user = User.find(1)
2843
- user.preferences = { "background" => "black", "display" => large }
2844
- user.save
2845
-
2846
- User.find(1).preferences # => { "background" => "black", "display" => large }
2847
-
2848
- Please note that this method should only be used when you don't care about representing the object in proper columns in
2849
- the database. A money object consisting of an amount and a currency is still a much better fit for a value object done through
2850
- aggregations than this new option.
2851
-
2852
- * POSSIBLE CODE BREAKAGE: As a consequence of the lazy type conversions, it's a bad idea to reference the @attributes hash
2853
- directly (it always was, but now it's paramount that you don't). If you do, you won't get the type conversion. So to implement
2854
- new accessors for existing attributes, use read_attribute(attr_name) and write_attribute(attr_name, value) instead. Like this:
2855
-
2856
- class Song < ActiveRecord::Base
2857
- # Uses an integer of seconds to hold the length of the song
2858
-
2859
- def length=(minutes)
2860
- write_attribute("length", minutes * 60)
2861
- end
2862
-
2863
- def length
2864
- read_attribute("length") / 60
2865
- end
2866
- end
2867
-
2868
- The clever kid will notice that this opens a door to sidestep the automated type conversion by using @attributes directly.
2869
- This is not recommended as read/write_attribute may be granted additional responsibilities in the future, but if you think
2870
- you know what you're doing and aren't afraid of future consequences, this is an option.
2871
-
2872
- * Applied a few minor bug fixes reported by Daniel Von Fange.
2873
-
2874
-
2875
- *0.8.4*
2876
-
2877
- _Reflection_
2878
-
2879
- * Added ActiveRecord::Reflection with a bunch of methods and classes for reflecting in aggregations and associations.
2880
-
2881
- * Added Base.columns and Base.content_columns which returns arrays of column description (type, default, etc) objects.
2882
-
2883
- * Added Base#attribute_names which returns an array of names for the attributes available on the object.
2884
-
2885
- * Added Base#column_for_attribute(name) which returns the column description object for the named attribute.
2886
-
2887
-
2888
- _Misc_
2889
-
2890
- * Added multi-parameter assignment:
2891
-
2892
- # Instantiate objects for all attribute classes that needs more than one constructor parameter. This is done
2893
- # by calling new on the column type or aggregation type (through composed_of) object with these parameters.
2894
- # So having the pairs written_on(1) = "2004", written_on(2) = "6", written_on(3) = "24", will instantiate
2895
- # written_on (a date type) with Date.new("2004", "6", "24"). You can also specify a typecast character in the
2896
- # parenteses to have the parameters typecasted before they're used in the constructor. Use i for Fixnum, f for Float,
2897
- # s for String, and a for Array.
2898
-
2899
- This is incredibly useful for assigning dates from HTML drop-downs of month, year, and day.
2900
-
2901
- * Fixed bug with custom primary key column name and Base.find on multiple parameters.
2902
-
2903
- * Fixed bug with dependent option on has_one associations if there was no associated object.
2904
-
2905
-
2906
- *0.8.3*
2907
-
2908
- _Transactions_
2909
-
2910
- * Added transactional protection for destroy (important for the new :dependent option) [Suggested by Carl Youngblood]
2911
-
2912
- * Fixed so transactions are ignored on MyISAM tables for MySQL (use InnoDB to get transactions)
2913
-
2914
- * Changed transactions so only exceptions will cause a rollback, not returned false.
2915
-
2916
-
2917
- _Mapping_
2918
-
2919
- * Added support for non-integer primary keys [Aredridel/earlier work by Michael Neumann]
2920
-
2921
- User.find "jdoe"
2922
- Product.find "PDKEY-INT-12"
2923
-
2924
- * Added option to specify naming method for primary key column. ActiveRecord::Base.primary_key_prefix_type can either
2925
- be set to nil, :table_name, or :table_name_with_underscore. :table_name will assume that Product class has a primary key
2926
- of "productid" and :table_name_with_underscore will assume "product_id". The default nil will just give "id".
2927
-
2928
- * Added an overwriteable primary_key method that'll instruct AR to the name of the
2929
- id column [Aredridele/earlier work by Guan Yang]
2930
-
2931
- class Project < ActiveRecord::Base
2932
- def self.primary_key() "project_id" end
2933
- end
2934
-
2935
- * Fixed that Active Records can safely associate inside and out of modules.
2936
-
2937
- class MyApplication::Account < ActiveRecord::Base
2938
- has_many :clients # will look for MyApplication::Client
2939
- has_many :interests, :class_name => "Business::Interest" # will look for Business::Interest
2940
- end
2941
-
2942
- * Fixed that Active Records can safely live inside modules [Aredridel]
2943
-
2944
- class MyApplication::Account < ActiveRecord::Base
2945
- end
2946
-
2947
-
2948
- _Misc_
2949
-
2950
- * Added freeze call to value object assignments to ensure they remain immutable [Spotted by Gavin Sinclair]
2951
-
2952
- * Changed interface for specifying observed class in observers. Was OBSERVED_CLASS constant, now is
2953
- observed_class() class method. This is more consistant with things like self.table_name(). Works like this:
2954
-
2955
- class AuditObserver < ActiveRecord::Observer
2956
- def self.observed_class() Account end
2957
- def after_update(account)
2958
- AuditTrail.new(account, "UPDATED")
2959
- end
2960
- end
2961
-
2962
- [Suggested by Gavin Sinclair]
2963
-
2964
- * Create new Active Record objects by setting the attributes through a block. Like this:
2965
-
2966
- person = Person.new do |p|
2967
- p.name = 'Freddy'
2968
- p.age = 19
2969
- end
2970
-
2971
- [Suggested by Gavin Sinclair]
2972
-
2973
-
2974
- *0.8.2*
2975
-
2976
- * Added inheritable callback queues that can ensure that certain callback methods or inline fragments are
2977
- run throughout the entire inheritance hierarchy. Regardless of whether a descendent overwrites the callback
2978
- method:
2979
-
2980
- class Topic < ActiveRecord::Base
2981
- before_destroy :destroy_author, 'puts "I'm an inline fragment"'
2982
- end
2983
-
2984
- Learn more in link:classes/ActiveRecord/Callbacks.html
2985
-
2986
- * Added :dependent option to has_many and has_one, which will automatically destroy associated objects when
2987
- the holder is destroyed:
2988
-
2989
- class Album < ActiveRecord::Base
2990
- has_many :tracks, :dependent => true
2991
- end
2992
-
2993
- All the associated tracks are destroyed when the album is.
2994
-
2995
- * Added Base.create as a factory that'll create, save, and return a new object in one step.
2996
-
2997
- * Automatically convert strings in config hashes to symbols for the _connection methods. This allows you
2998
- to pass the argument hashes directly from yaml. (Luke)
2999
-
3000
- * Fixed the install.rb to include simple.rb [Spotted by Kevin Bullock]
3001
-
3002
- * Modified block syntax to better follow our code standards outlined in
3003
- http://www.rubyonrails.org/CodingStandards
3004
-
3005
-
3006
- *0.8.1*
3007
-
3008
- * Added object-level transactions [Thanks to Austin Ziegler for Transaction::Simple]
3009
-
3010
- * Changed adapter-specific connection methods to use centralized ActiveRecord::Base.establish_connection,
3011
- which is parametized through a config hash with symbol keys instead of a regular parameter list.
3012
- This will allow for database connections to be opened in a more generic fashion. (Luke)
3013
-
3014
- NOTE: This requires all *_connections to be updated! Read more in:
3015
- http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000081
3016
-
3017
- * Fixed SQLite adapter so objects fetched from has_and_belongs_to_many have proper attributes
3018
- (t.name is now name). [Spotted by Garrett Rooney]
3019
-
3020
- * Fixed SQLite adapter so dates are returned as Date objects, not Time objects [Spotted by Gavin Sinclair]
3021
-
3022
- * Fixed requirement of date class, so date conversions are succesful regardless of whether you
3023
- manually require date or not.
3024
-
3025
-
3026
- *0.8.0*
3027
-
3028
- * Added transactions
3029
-
3030
- * Changed Base.find to also accept either a list (1, 5, 6) or an array of ids ([5, 7])
3031
- as parameter and then return an array of objects instead of just an object
3032
-
3033
- * Fixed method has_collection? for has_and_belongs_to_many macro to behave as a
3034
- collection, not an association
3035
-
3036
- * Fixed SQLite adapter so empty or nil values in columns of datetime, date, or time type
3037
- aren't treated as current time [Spotted by Gavin Sinclair]
3038
-
3039
-
3040
- *0.7.6*
3041
-
3042
- * Fixed the install.rb to create the lib/active_record/support directory [Spotted by Gavin Sinclair]
3043
- * Fixed that has_association? would always return true [Spotted by Daniel Von Fange]