challah 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1773) hide show
  1. data/CHANGELOG.md +4 -0
  2. data/lib/challah/railtie.rb +2 -1
  3. data/lib/challah/version.rb +1 -1
  4. data/vendor/bundle/cache/actionmailer-3.2.5.gem +0 -0
  5. data/vendor/bundle/cache/actionpack-3.2.5.gem +0 -0
  6. data/vendor/bundle/cache/activemodel-3.2.5.gem +0 -0
  7. data/vendor/bundle/cache/activerecord-3.2.5.gem +0 -0
  8. data/vendor/bundle/cache/activeresource-3.2.5.gem +0 -0
  9. data/vendor/bundle/cache/activesupport-3.2.5.gem +0 -0
  10. data/vendor/bundle/cache/multi_json-1.3.6.gem +0 -0
  11. data/vendor/bundle/cache/rails-3.2.5.gem +0 -0
  12. data/vendor/bundle/cache/railties-3.2.5.gem +0 -0
  13. data/vendor/bundle/cache/thor-0.15.2.gem +0 -0
  14. data/vendor/bundle/cache/yard-0.8.2.gem +0 -0
  15. data/vendor/bundle/gems/actionmailer-3.2.5/CHANGELOG.md +476 -0
  16. data/vendor/bundle/gems/actionmailer-3.2.5/MIT-LICENSE +21 -0
  17. data/vendor/bundle/gems/actionmailer-3.2.5/README.rdoc +163 -0
  18. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/base.rb +737 -0
  19. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/collector.rb +30 -0
  20. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/delivery_methods.rb +86 -0
  21. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/log_subscriber.rb +22 -0
  22. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/mail_helper.rb +56 -0
  23. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/railtie.rb +44 -0
  24. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/test_case.rb +82 -0
  25. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/test_helper.rb +61 -0
  26. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/version.rb +10 -0
  27. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer.rb +49 -0
  28. data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/USAGE +18 -0
  29. data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/mailer_generator.rb +16 -0
  30. data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/templates/mailer.rb +18 -0
  31. data/vendor/bundle/gems/actionpack-3.2.5/CHANGELOG.md +5906 -0
  32. data/vendor/bundle/gems/actionpack-3.2.5/MIT-LICENSE +21 -0
  33. data/vendor/bundle/gems/actionpack-3.2.5/README.rdoc +341 -0
  34. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/asset_paths.rb +10 -0
  35. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/base.rb +213 -0
  36. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/callbacks.rb +198 -0
  37. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/collector.rb +32 -0
  38. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/helpers.rb +167 -0
  39. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/layouts.rb +423 -0
  40. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/logger.rb +13 -0
  41. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/railties/routes_helpers.rb +18 -0
  42. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/rendering.rb +179 -0
  43. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/translation.rb +13 -0
  44. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/url_for.rb +33 -0
  45. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/view_paths.rb +96 -0
  46. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller.rb +28 -0
  47. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/base.rb +235 -0
  48. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/actions.rb +185 -0
  49. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/fragments.rb +127 -0
  50. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/pages.rb +187 -0
  51. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/sweeping.rb +97 -0
  52. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching.rb +83 -0
  53. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated/integration_test.rb +2 -0
  54. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated/performance_test.rb +1 -0
  55. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated.rb +3 -0
  56. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/log_subscriber.rb +66 -0
  57. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/compatibility.rb +64 -0
  58. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/conditional_get.rb +131 -0
  59. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/cookies.rb +16 -0
  60. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/data_streaming.rb +157 -0
  61. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/exceptions.rb +46 -0
  62. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/flash.rb +28 -0
  63. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/force_ssl.rb +39 -0
  64. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/head.rb +35 -0
  65. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/helpers.rb +113 -0
  66. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/hide_actions.rb +47 -0
  67. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/http_authentication.rb +466 -0
  68. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/implicit_render.rb +19 -0
  69. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/instrumentation.rb +105 -0
  70. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/mime_responds.rb +317 -0
  71. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/params_wrapper.rb +239 -0
  72. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rack_delegation.rb +26 -0
  73. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/redirecting.rb +109 -0
  74. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/renderers.rb +109 -0
  75. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rendering.rb +65 -0
  76. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/request_forgery_protection.rb +113 -0
  77. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rescue.rb +35 -0
  78. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/responder.rb +286 -0
  79. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/session_management.rb +14 -0
  80. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/streaming.rb +229 -0
  81. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/testing.rb +37 -0
  82. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/url_for.rb +47 -0
  83. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal.rb +250 -0
  84. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/middleware.rb +39 -0
  85. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/railtie.rb +51 -0
  86. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/railties/paths.rb +25 -0
  87. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/record_identifier.rb +85 -0
  88. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/test_case.rb +553 -0
  89. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/document.rb +68 -0
  90. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/node.rb +532 -0
  91. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +177 -0
  92. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/selector.rb +830 -0
  93. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +107 -0
  94. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/version.rb +11 -0
  95. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner.rb +20 -0
  96. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller.rb +65 -0
  97. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/cache.rb +123 -0
  98. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/filter_parameters.rb +70 -0
  99. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/headers.rb +31 -0
  100. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_negotiation.rb +110 -0
  101. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_type.rb +276 -0
  102. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_types.rb +35 -0
  103. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/parameter_filter.rb +74 -0
  104. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/parameters.rb +83 -0
  105. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/rack_cache.rb +62 -0
  106. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/request.rb +279 -0
  107. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/response.rb +206 -0
  108. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/upload.rb +47 -0
  109. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/url.rb +174 -0
  110. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/best_standards_support.rb +22 -0
  111. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/body_proxy.rb +30 -0
  112. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/callbacks.rb +32 -0
  113. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/cookies.rb +350 -0
  114. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/debug_exceptions.rb +82 -0
  115. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/exception_wrapper.rb +78 -0
  116. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/flash.rb +260 -0
  117. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/head.rb +18 -0
  118. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/params_parser.rb +75 -0
  119. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/public_exceptions.rb +30 -0
  120. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/reloader.rb +89 -0
  121. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/remote_ip.rb +81 -0
  122. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/request_id.rb +39 -0
  123. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/rescue.rb +26 -0
  124. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/abstract_store.rb +79 -0
  125. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/cache_store.rb +49 -0
  126. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/cookie_store.rb +71 -0
  127. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/mem_cache_store.rb +17 -0
  128. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/show_exceptions.rb +87 -0
  129. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/stack.rb +124 -0
  130. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/static.rb +65 -0
  131. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +31 -0
  132. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb +26 -0
  133. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb +10 -0
  134. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/layout.erb +32 -0
  135. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/missing_template.erb +2 -0
  136. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb +15 -0
  137. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/template_error.erb +17 -0
  138. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb +2 -0
  139. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/railtie.rb +34 -0
  140. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/mapper.rb +1509 -0
  141. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/polymorphic_routes.rb +203 -0
  142. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/redirection.rb +131 -0
  143. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/route_set.rb +658 -0
  144. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/routes_proxy.rb +39 -0
  145. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/url_for.rb +167 -0
  146. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing.rb +293 -0
  147. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/dom.rb +37 -0
  148. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/response.rb +96 -0
  149. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/routing.rb +217 -0
  150. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/selector.rb +435 -0
  151. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/tag.rb +138 -0
  152. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions.rb +18 -0
  153. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/integration.rb +496 -0
  154. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/performance_test.rb +10 -0
  155. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_process.rb +41 -0
  156. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_request.rb +74 -0
  157. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_response.rb +29 -0
  158. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch.rb +102 -0
  159. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_pack/version.rb +10 -0
  160. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_pack.rb +24 -0
  161. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/asset_paths.rb +136 -0
  162. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/base.rb +220 -0
  163. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/buffers.rb +43 -0
  164. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/context.rb +36 -0
  165. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/flows.rb +79 -0
  166. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/active_model_helper.rb +50 -0
  167. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_paths.rb +7 -0
  168. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helper.rb +459 -0
  169. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb +146 -0
  170. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb +93 -0
  171. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb +192 -0
  172. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb +148 -0
  173. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/atom_feed_helper.rb +200 -0
  174. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/cache_helper.rb +64 -0
  175. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/capture_helper.rb +203 -0
  176. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/controller_helper.rb +23 -0
  177. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/csrf_helper.rb +32 -0
  178. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/date_helper.rb +1054 -0
  179. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/debug_helper.rb +40 -0
  180. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_helper.rb +1487 -0
  181. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_options_helper.rb +658 -0
  182. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_tag_helper.rb +688 -0
  183. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/javascript_helper.rb +114 -0
  184. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/number_helper.rb +539 -0
  185. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/output_safety_helper.rb +38 -0
  186. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/record_tag_helper.rb +109 -0
  187. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/rendering_helper.rb +90 -0
  188. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/sanitize_helper.rb +259 -0
  189. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/tag_helper.rb +160 -0
  190. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/text_helper.rb +426 -0
  191. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/translation_helper.rb +88 -0
  192. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/url_helper.rb +696 -0
  193. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers.rb +60 -0
  194. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/locale/en.yml +160 -0
  195. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/log_subscriber.rb +28 -0
  196. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/lookup_context.rb +241 -0
  197. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/path_set.rb +89 -0
  198. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/railtie.rb +55 -0
  199. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/abstract_renderer.rb +41 -0
  200. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/partial_renderer.rb +415 -0
  201. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/renderer.rb +54 -0
  202. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/streaming_template_renderer.rb +106 -0
  203. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/template_renderer.rb +94 -0
  204. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/error.rb +128 -0
  205. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers/builder.rb +26 -0
  206. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers/erb.rb +109 -0
  207. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers.rb +50 -0
  208. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/resolver.rb +258 -0
  209. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/text.rb +30 -0
  210. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template.rb +337 -0
  211. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/test_case.rb +244 -0
  212. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/testing/resolvers.rb +50 -0
  213. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view.rb +84 -0
  214. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/assets.rake +99 -0
  215. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/bootstrap.rb +37 -0
  216. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/compressors.rb +83 -0
  217. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers/isolated_helper.rb +13 -0
  218. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers/rails_helper.rb +172 -0
  219. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers.rb +6 -0
  220. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/railtie.rb +62 -0
  221. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/static_compiler.rb +64 -0
  222. data/vendor/bundle/gems/activemodel-3.2.5/CHANGELOG.md +134 -0
  223. data/vendor/bundle/gems/activemodel-3.2.5/MIT-LICENSE +21 -0
  224. data/vendor/bundle/gems/activemodel-3.2.5/README.rdoc +211 -0
  225. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/attribute_methods.rb +452 -0
  226. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/callbacks.rb +134 -0
  227. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/conversion.rb +73 -0
  228. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/dirty.rb +167 -0
  229. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/errors.rb +370 -0
  230. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/lint.rb +123 -0
  231. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/locale/en.yml +27 -0
  232. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security/permission_set.rb +40 -0
  233. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security/sanitizer.rb +59 -0
  234. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security.rb +237 -0
  235. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/naming.rb +171 -0
  236. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/observer_array.rb +147 -0
  237. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/observing.rb +252 -0
  238. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/railtie.rb +2 -0
  239. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/secure_password.rb +74 -0
  240. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serialization.rb +139 -0
  241. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serializers/json.rb +108 -0
  242. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serializers/xml.rb +195 -0
  243. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/test_case.rb +16 -0
  244. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/translation.rb +70 -0
  245. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/acceptance.rb +67 -0
  246. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/callbacks.rb +57 -0
  247. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/confirmation.rb +67 -0
  248. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/exclusion.rb +75 -0
  249. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/format.rb +105 -0
  250. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/inclusion.rb +75 -0
  251. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/length.rb +127 -0
  252. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/numericality.rb +138 -0
  253. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/presence.rb +49 -0
  254. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/validates.rb +137 -0
  255. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/with.rb +142 -0
  256. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations.rb +235 -0
  257. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validator.rb +184 -0
  258. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/version.rb +10 -0
  259. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model.rb +61 -0
  260. data/vendor/bundle/gems/activerecord-3.2.5/CHANGELOG.md +6792 -0
  261. data/vendor/bundle/gems/activerecord-3.2.5/MIT-LICENSE +20 -0
  262. data/vendor/bundle/gems/activerecord-3.2.5/README.rdoc +222 -0
  263. data/vendor/bundle/gems/activerecord-3.2.5/examples/associations.png +0 -0
  264. data/vendor/bundle/gems/activerecord-3.2.5/examples/performance.rb +177 -0
  265. data/vendor/bundle/gems/activerecord-3.2.5/examples/simple.rb +14 -0
  266. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/aggregations.rb +255 -0
  267. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/alias_tracker.rb +76 -0
  268. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/association.rb +240 -0
  269. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/association_scope.rb +134 -0
  270. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/belongs_to_association.rb +79 -0
  271. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/belongs_to_polymorphic_association.rb +34 -0
  272. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/association.rb +55 -0
  273. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/belongs_to.rb +85 -0
  274. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/collection_association.rb +75 -0
  275. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_and_belongs_to_many.rb +57 -0
  276. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_many.rb +71 -0
  277. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_one.rb +62 -0
  278. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/singular_association.rb +32 -0
  279. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/collection_association.rb +586 -0
  280. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/collection_proxy.rb +131 -0
  281. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_and_belongs_to_many_association.rb +69 -0
  282. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_many_association.rb +112 -0
  283. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_many_through_association.rb +186 -0
  284. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_one_association.rb +73 -0
  285. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_one_through_association.rb +36 -0
  286. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_association.rb +154 -0
  287. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_base.rb +24 -0
  288. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_part.rb +78 -0
  289. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency.rb +214 -0
  290. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_helper.rb +55 -0
  291. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/association.rb +127 -0
  292. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/belongs_to.rb +17 -0
  293. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/collection_association.rb +24 -0
  294. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_and_belongs_to_many.rb +60 -0
  295. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_many.rb +17 -0
  296. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_many_through.rb +15 -0
  297. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_one.rb +23 -0
  298. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_one_through.rb +9 -0
  299. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/singular_association.rb +21 -0
  300. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/through_association.rb +67 -0
  301. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader.rb +177 -0
  302. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/singular_association.rb +64 -0
  303. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/through_association.rb +87 -0
  304. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations.rb +1604 -0
  305. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_assignment.rb +221 -0
  306. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/before_type_cast.rb +31 -0
  307. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/deprecated_underscore_read.rb +32 -0
  308. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/dirty.rb +101 -0
  309. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/primary_key.rb +114 -0
  310. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/query.rb +39 -0
  311. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/read.rb +136 -0
  312. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/serialization.rb +102 -0
  313. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/time_zone_conversion.rb +63 -0
  314. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/write.rb +69 -0
  315. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods.rb +273 -0
  316. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/autosave_association.rb +422 -0
  317. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/base.rb +721 -0
  318. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/callbacks.rb +275 -0
  319. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/coders/yaml_column.rb +41 -0
  320. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb +482 -0
  321. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_specification.rb +188 -0
  322. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_limits.rb +58 -0
  323. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb +390 -0
  324. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/query_cache.rb +82 -0
  325. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/quoting.rb +115 -0
  326. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/schema_definitions.rb +492 -0
  327. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/schema_statements.rb +606 -0
  328. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_adapter.rb +296 -0
  329. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +674 -0
  330. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/column.rb +270 -0
  331. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/mysql2_adapter.rb +278 -0
  332. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/mysql_adapter.rb +426 -0
  333. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/postgresql_adapter.rb +1306 -0
  334. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/schema_cache.rb +50 -0
  335. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/sqlite3_adapter.rb +55 -0
  336. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/sqlite_adapter.rb +579 -0
  337. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/statement_pool.rb +40 -0
  338. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/counter_cache.rb +119 -0
  339. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_finder_match.rb +68 -0
  340. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_matchers.rb +79 -0
  341. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_scope_match.rb +23 -0
  342. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/errors.rb +195 -0
  343. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/explain.rb +85 -0
  344. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/explain_subscriber.rb +24 -0
  345. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/fixtures/file.rb +65 -0
  346. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/fixtures.rb +922 -0
  347. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/identity_map.rb +162 -0
  348. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/inheritance.rb +174 -0
  349. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/integration.rb +49 -0
  350. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locale/en.yml +40 -0
  351. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locking/optimistic.rb +183 -0
  352. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locking/pessimistic.rb +77 -0
  353. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/log_subscriber.rb +68 -0
  354. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/migration/command_recorder.rb +105 -0
  355. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/migration.rb +781 -0
  356. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/model_schema.rb +366 -0
  357. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/nested_attributes.rb +469 -0
  358. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/observer.rb +121 -0
  359. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/persistence.rb +372 -0
  360. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/query_cache.rb +74 -0
  361. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/querying.rb +58 -0
  362. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railtie.rb +125 -0
  363. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/console_sandbox.rb +6 -0
  364. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/controller_runtime.rb +49 -0
  365. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake +624 -0
  366. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/jdbcmysql_error.rb +16 -0
  367. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/readonly_attributes.rb +26 -0
  368. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/reflection.rb +534 -0
  369. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/batches.rb +90 -0
  370. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/calculations.rb +354 -0
  371. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/delegation.rb +49 -0
  372. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/finder_methods.rb +397 -0
  373. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/predicate_builder.rb +58 -0
  374. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/query_methods.rb +417 -0
  375. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/spawn_methods.rb +148 -0
  376. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation.rb +537 -0
  377. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/result.rb +34 -0
  378. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/sanitization.rb +194 -0
  379. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/schema.rb +58 -0
  380. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/schema_dumper.rb +204 -0
  381. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping/default.rb +142 -0
  382. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping/named.rb +202 -0
  383. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping.rb +152 -0
  384. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/serialization.rb +18 -0
  385. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/serializers/xml_serializer.rb +203 -0
  386. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/session_store.rb +358 -0
  387. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/store.rb +50 -0
  388. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/test_case.rb +73 -0
  389. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/timestamp.rb +113 -0
  390. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/transactions.rb +362 -0
  391. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/translation.rb +22 -0
  392. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations/associated.rb +43 -0
  393. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations/uniqueness.rb +180 -0
  394. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations.rb +83 -0
  395. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/version.rb +10 -0
  396. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record.rb +147 -0
  397. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration/migration_generator.rb +25 -0
  398. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration/templates/migration.rb +34 -0
  399. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration.rb +15 -0
  400. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/model_generator.rb +47 -0
  401. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/migration.rb +15 -0
  402. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/model.rb +12 -0
  403. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/module.rb +7 -0
  404. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/observer/observer_generator.rb +15 -0
  405. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/observer/templates/observer.rb +4 -0
  406. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/session_migration/session_migration_generator.rb +25 -0
  407. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/session_migration/templates/migration.rb +12 -0
  408. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record.rb +25 -0
  409. data/vendor/bundle/gems/activeresource-3.2.5/CHANGELOG.md +353 -0
  410. data/vendor/bundle/gems/activeresource-3.2.5/MIT-LICENSE +20 -0
  411. data/vendor/bundle/gems/activeresource-3.2.5/README.rdoc +187 -0
  412. data/vendor/bundle/gems/activeresource-3.2.5/examples/performance.rb +70 -0
  413. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/base.rb +1482 -0
  414. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/connection.rb +287 -0
  415. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/custom_methods.rb +119 -0
  416. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/exceptions.rb +82 -0
  417. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats/json_format.rb +25 -0
  418. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats/xml_format.rb +25 -0
  419. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats.rb +22 -0
  420. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/http_mock.rb +335 -0
  421. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/log_subscriber.rb +15 -0
  422. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/observing.rb +29 -0
  423. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/railtie.rb +14 -0
  424. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/schema.rb +59 -0
  425. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/validations.rb +134 -0
  426. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/version.rb +10 -0
  427. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource.rb +46 -0
  428. data/vendor/bundle/gems/activesupport-3.2.5/CHANGELOG.md +1693 -0
  429. data/vendor/bundle/gems/activesupport-3.2.5/MIT-LICENSE +20 -0
  430. data/vendor/bundle/gems/activesupport-3.2.5/README.rdoc +33 -0
  431. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/all.rb +3 -0
  432. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/backtrace_cleaner.rb +99 -0
  433. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/base64.rb +54 -0
  434. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/basic_object.rb +21 -0
  435. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/benchmarkable.rb +55 -0
  436. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/buffered_logger.rb +125 -0
  437. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/builder.rb +6 -0
  438. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/file_store.rb +178 -0
  439. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/mem_cache_store.rb +206 -0
  440. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/memory_store.rb +159 -0
  441. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/null_store.rb +44 -0
  442. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/strategy/local_cache.rb +169 -0
  443. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache.rb +638 -0
  444. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/callbacks.rb +626 -0
  445. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/concern.rb +131 -0
  446. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/configurable.rb +90 -0
  447. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/access.rb +46 -0
  448. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/conversions.rb +164 -0
  449. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/extract_options.rb +29 -0
  450. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/grouping.rb +100 -0
  451. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/prepend_and_append.rb +7 -0
  452. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/random_access.rb +30 -0
  453. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/uniq_by.rb +16 -0
  454. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/wrap.rb +48 -0
  455. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array.rb +8 -0
  456. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/benchmark.rb +7 -0
  457. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/big_decimal/conversions.rb +45 -0
  458. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/big_decimal.rb +1 -0
  459. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/attribute.rb +115 -0
  460. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/attribute_accessors.rb +168 -0
  461. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/delegating_attributes.rb +44 -0
  462. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/subclasses.rb +36 -0
  463. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class.rb +4 -0
  464. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/acts_like.rb +8 -0
  465. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/calculations.rb +276 -0
  466. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/conversions.rb +106 -0
  467. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/freeze.rb +33 -0
  468. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/zones.rb +14 -0
  469. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
  470. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/calculations.rb +143 -0
  471. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/conversions.rb +103 -0
  472. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/zones.rb +21 -0
  473. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/enumerable.rb +127 -0
  474. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/exception.rb +3 -0
  475. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file/atomic.rb +42 -0
  476. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file/path.rb +5 -0
  477. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file.rb +2 -0
  478. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/float/rounding.rb +19 -0
  479. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/float.rb +1 -0
  480. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/conversions.rb +157 -0
  481. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/deep_dup.rb +18 -0
  482. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/deep_merge.rb +21 -0
  483. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/diff.rb +13 -0
  484. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/except.rb +23 -0
  485. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
  486. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/keys.rb +54 -0
  487. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/reverse_merge.rb +23 -0
  488. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/slice.rb +40 -0
  489. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash.rb +9 -0
  490. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/inflections.rb +17 -0
  491. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/multiple.rb +10 -0
  492. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/time.rb +39 -0
  493. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer.rb +3 -0
  494. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/io.rb +15 -0
  495. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
  496. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/debugger.rb +10 -0
  497. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/reporting.rb +93 -0
  498. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/singleton_class.rb +13 -0
  499. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel.rb +4 -0
  500. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/load_error.rb +23 -0
  501. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/logger.rb +83 -0
  502. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/aliasing.rb +70 -0
  503. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/anonymous.rb +24 -0
  504. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/attr_internal.rb +39 -0
  505. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/attribute_accessors.rb +64 -0
  506. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/delegation.rb +153 -0
  507. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/deprecation.rb +9 -0
  508. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/introspection.rb +88 -0
  509. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/method_names.rb +14 -0
  510. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/qualified_const.rb +64 -0
  511. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/reachable.rb +8 -0
  512. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/remove_method.rb +16 -0
  513. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/synchronization.rb +45 -0
  514. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module.rb +12 -0
  515. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/name_error.rb +18 -0
  516. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric/bytes.rb +44 -0
  517. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric/time.rb +79 -0
  518. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric.rb +2 -0
  519. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/acts_like.rb +10 -0
  520. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/blank.rb +121 -0
  521. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/conversions.rb +4 -0
  522. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/duplicable.rb +119 -0
  523. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/inclusion.rb +25 -0
  524. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/instance_variables.rb +33 -0
  525. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_json.rb +19 -0
  526. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_param.rb +55 -0
  527. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_query.rb +27 -0
  528. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/try.rb +57 -0
  529. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/with_options.rb +43 -0
  530. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object.rb +13 -0
  531. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/proc.rb +14 -0
  532. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/process/daemon.rb +23 -0
  533. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/process.rb +1 -0
  534. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/blockless_step.rb +29 -0
  535. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/conversions.rb +21 -0
  536. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/cover.rb +3 -0
  537. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/include_range.rb +21 -0
  538. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/overlaps.rb +8 -0
  539. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range.rb +5 -0
  540. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/regexp.rb +5 -0
  541. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/rexml.rb +46 -0
  542. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/access.rb +99 -0
  543. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/behavior.rb +6 -0
  544. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/conversions.rb +66 -0
  545. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/encoding.rb +11 -0
  546. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/exclude.rb +11 -0
  547. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/filters.rb +49 -0
  548. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/inflections.rb +202 -0
  549. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/inquiry.rb +13 -0
  550. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/interpolation.rb +2 -0
  551. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/multibyte.rb +72 -0
  552. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/output_safety.rb +187 -0
  553. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/starts_ends_with.rb +4 -0
  554. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/strip.rb +26 -0
  555. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/xchar.rb +18 -0
  556. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string.rb +14 -0
  557. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/acts_like.rb +8 -0
  558. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/calculations.rb +358 -0
  559. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/conversions.rb +85 -0
  560. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/marshal.rb +57 -0
  561. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
  562. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/zones.rb +87 -0
  563. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/uri.rb +30 -0
  564. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext.rb +3 -0
  565. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/dependencies/autoload.rb +50 -0
  566. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/dependencies.rb +703 -0
  567. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/behaviors.rb +49 -0
  568. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/method_wrappers.rb +29 -0
  569. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/proxy_wrappers.rb +81 -0
  570. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/reporting.rb +65 -0
  571. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation.rb +18 -0
  572. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/descendants_tracker.rb +45 -0
  573. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/duration.rb +110 -0
  574. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/file_update_checker.rb +121 -0
  575. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/file_watcher.rb +36 -0
  576. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/gzip.rb +30 -0
  577. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/hash_with_indifferent_access.rb +168 -0
  578. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/i18n.rb +9 -0
  579. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/i18n_railtie.rb +102 -0
  580. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflections.rb +61 -0
  581. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/inflections.rb +172 -0
  582. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/methods.rb +320 -0
  583. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/transliterate.rb +98 -0
  584. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector.rb +7 -0
  585. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/decoding.rb +79 -0
  586. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/encoding.rb +284 -0
  587. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/variable.rb +17 -0
  588. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json.rb +2 -0
  589. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/lazy_load_hooks.rb +46 -0
  590. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/locale/en.yml +36 -0
  591. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/log_subscriber/test_helper.rb +101 -0
  592. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/log_subscriber.rb +122 -0
  593. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/memoizable.rb +116 -0
  594. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/message_encryptor.rb +103 -0
  595. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/message_verifier.rb +74 -0
  596. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/chars.rb +476 -0
  597. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/exceptions.rb +8 -0
  598. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/unicode.rb +393 -0
  599. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/utils.rb +60 -0
  600. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte.rb +44 -0
  601. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications/fanout.rb +61 -0
  602. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications/instrumenter.rb +53 -0
  603. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications.rb +154 -0
  604. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/option_merger.rb +25 -0
  605. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ordered_hash.rb +222 -0
  606. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ordered_options.rb +61 -0
  607. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/railtie.rb +59 -0
  608. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/rescuable.rb +115 -0
  609. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ruby/shim.rb +22 -0
  610. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/string_inquirer.rb +21 -0
  611. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/tagged_logging.rb +70 -0
  612. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/test_case.rb +34 -0
  613. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/assertions.rb +97 -0
  614. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/declarative.rb +40 -0
  615. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/deprecation.rb +55 -0
  616. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/isolation.rb +157 -0
  617. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/mochaing.rb +7 -0
  618. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/pending.rb +52 -0
  619. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/jruby.rb +115 -0
  620. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/rubinius.rb +113 -0
  621. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby/mri.rb +57 -0
  622. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby/yarv.rb +57 -0
  623. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby.rb +152 -0
  624. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance.rb +317 -0
  625. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/setup_and_teardown.rb +116 -0
  626. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time/autoload.rb +5 -0
  627. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time.rb +35 -0
  628. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time_with_zone.rb +354 -0
  629. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/values/time_zone.rb +397 -0
  630. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/values/unicode_tables.dat +0 -0
  631. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/version.rb +10 -0
  632. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/whiny_nil.rb +24 -0
  633. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/jdom.rb +175 -0
  634. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/libxml.rb +80 -0
  635. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/libxmlsax.rb +86 -0
  636. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/nokogiri.rb +84 -0
  637. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/nokogirisax.rb +88 -0
  638. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/rexml.rb +130 -0
  639. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini.rb +168 -0
  640. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support.rb +82 -0
  641. data/vendor/bundle/gems/multi_json-1.3.6/Gemfile +7 -0
  642. data/vendor/bundle/gems/multi_json-1.3.6/LICENSE.md +20 -0
  643. data/vendor/bundle/gems/multi_json-1.3.6/README.md +119 -0
  644. data/vendor/bundle/gems/multi_json-1.3.6/Rakefile +20 -0
  645. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_common.rb +25 -0
  646. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_gem.rb +12 -0
  647. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_pure.rb +12 -0
  648. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
  649. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/oj.rb +22 -0
  650. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/ok_json.rb +48 -0
  651. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb +18 -0
  652. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/vendor/okjson.rb +602 -0
  653. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/version.rb +3 -0
  654. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json.rb +118 -0
  655. data/vendor/bundle/gems/multi_json-1.3.6/multi_json.gemspec +22 -0
  656. data/vendor/bundle/gems/multi_json-1.3.6/spec/adapter_shared_example.rb +115 -0
  657. data/vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb +32 -0
  658. data/vendor/bundle/gems/multi_json-1.3.6/spec/multi_json_spec.rb +87 -0
  659. data/vendor/bundle/gems/railties-3.2.5/CHANGELOG.md +2446 -0
  660. data/vendor/bundle/gems/railties-3.2.5/README.rdoc +35 -0
  661. data/vendor/bundle/gems/railties-3.2.5/bin/rails +7 -0
  662. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/belongs_to.png +0 -0
  663. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/book_icon.gif +0 -0
  664. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/bullet.gif +0 -0
  665. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/challenge.png +0 -0
  666. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/chapters_icon.gif +0 -0
  667. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/check_bullet.gif +0 -0
  668. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/credits_pic_blank.gif +0 -0
  669. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/csrf.png +0 -0
  670. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/customized_error_messages.png +0 -0
  671. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/edge_badge.png +0 -0
  672. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/error_messages.png +0 -0
  673. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/feature_tile.gif +0 -0
  674. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/footer_tile.gif +0 -0
  675. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/fxn.png +0 -0
  676. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/grey_bullet.gif +0 -0
  677. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/habtm.png +0 -0
  678. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_many.png +0 -0
  679. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_many_through.png +0 -0
  680. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_one.png +0 -0
  681. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_one_through.png +0 -0
  682. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/header_backdrop.png +0 -0
  683. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/header_tile.gif +0 -0
  684. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_html_safe.png +0 -0
  685. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_localized_pirate.png +0 -0
  686. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translated_en.png +0 -0
  687. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translated_pirate.png +0 -0
  688. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translation_missing.png +0 -0
  689. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_untranslated.png +0 -0
  690. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/README +5 -0
  691. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/1.png +0 -0
  692. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/10.png +0 -0
  693. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/11.png +0 -0
  694. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/12.png +0 -0
  695. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/13.png +0 -0
  696. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/14.png +0 -0
  697. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/15.png +0 -0
  698. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/2.png +0 -0
  699. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/3.png +0 -0
  700. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/4.png +0 -0
  701. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/5.png +0 -0
  702. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/6.png +0 -0
  703. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/7.png +0 -0
  704. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/8.png +0 -0
  705. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/9.png +0 -0
  706. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/caution.png +0 -0
  707. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/example.png +0 -0
  708. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/home.png +0 -0
  709. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/important.png +0 -0
  710. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/next.png +0 -0
  711. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/note.png +0 -0
  712. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/prev.png +0 -0
  713. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/tip.png +0 -0
  714. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/up.png +0 -0
  715. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/warning.png +0 -0
  716. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/jaimeiniesta.jpg +0 -0
  717. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/nav_arrow.gif +0 -0
  718. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/polymorphic.png +0 -0
  719. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/posts_index.png +0 -0
  720. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/radar.png +0 -0
  721. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
  722. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_guides_logo.gif +0 -0
  723. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_logo_remix.gif +0 -0
  724. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_welcome.png +0 -0
  725. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/session_fixation.png +0 -0
  726. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_grey.gif +0 -0
  727. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_info.gif +0 -0
  728. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_note.gif +0 -0
  729. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_red.gif +0 -0
  730. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_yellow.gif +0 -0
  731. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_yellow.png +0 -0
  732. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/validation_error_messages.png +0 -0
  733. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/vijaydev.jpg +0 -0
  734. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/guides.js +7 -0
  735. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +59 -0
  736. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +75 -0
  737. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +59 -0
  738. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +65 -0
  739. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +100 -0
  740. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +97 -0
  741. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +91 -0
  742. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +55 -0
  743. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +41 -0
  744. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +52 -0
  745. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +67 -0
  746. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +52 -0
  747. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +57 -0
  748. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +58 -0
  749. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +72 -0
  750. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +88 -0
  751. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +33 -0
  752. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +74 -0
  753. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +64 -0
  754. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +55 -0
  755. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +94 -0
  756. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +51 -0
  757. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +66 -0
  758. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +56 -0
  759. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +69 -0
  760. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shCore.js +17 -0
  761. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/fixes.css +16 -0
  762. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/kindle.css +11 -0
  763. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/main.css +453 -0
  764. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/print.css +52 -0
  765. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/reset.css +43 -0
  766. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/style.css +13 -0
  767. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCore.css +226 -0
  768. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +328 -0
  769. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +331 -0
  770. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +339 -0
  771. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +324 -0
  772. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
  773. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +324 -0
  774. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +324 -0
  775. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +324 -0
  776. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +117 -0
  777. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +120 -0
  778. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +128 -0
  779. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +113 -0
  780. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
  781. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +113 -0
  782. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +113 -0
  783. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +113 -0
  784. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +116 -0
  785. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/Gemfile +38 -0
  786. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/README.rdoc +261 -0
  787. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/Rakefile +7 -0
  788. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/images/rails.png +0 -0
  789. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/application.js +15 -0
  790. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +3 -0
  791. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/home.js.coffee +3 -0
  792. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +3 -0
  793. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/application.css +13 -0
  794. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +3 -0
  795. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/home.css.scss +3 -0
  796. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +3 -0
  797. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss +56 -0
  798. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/application_controller.rb +3 -0
  799. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/comments_controller.rb +16 -0
  800. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/home_controller.rb +5 -0
  801. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/posts_controller.rb +84 -0
  802. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/application_helper.rb +2 -0
  803. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/comments_helper.rb +2 -0
  804. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/home_helper.rb +2 -0
  805. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/posts_helper.rb +5 -0
  806. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/comment.rb +3 -0
  807. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/post.rb +11 -0
  808. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/tag.rb +3 -0
  809. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/comments/_comment.html.erb +15 -0
  810. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/comments/_form.html.erb +13 -0
  811. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/home/index.html.erb +2 -0
  812. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/layouts/application.html.erb +14 -0
  813. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/_form.html.erb +32 -0
  814. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/edit.html.erb +6 -0
  815. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/index.html.erb +27 -0
  816. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/new.html.erb +5 -0
  817. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/show.html.erb +31 -0
  818. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/tags/_form.html.erb +12 -0
  819. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/application.rb +59 -0
  820. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/boot.rb +6 -0
  821. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/database.yml +25 -0
  822. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environment.rb +5 -0
  823. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/development.rb +37 -0
  824. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/production.rb +67 -0
  825. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/test.rb +37 -0
  826. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/backtrace_silencers.rb +7 -0
  827. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/inflections.rb +15 -0
  828. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/mime_types.rb +5 -0
  829. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/secret_token.rb +7 -0
  830. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/session_store.rb +8 -0
  831. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/wrap_parameters.rb +14 -0
  832. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/locales/en.yml +5 -0
  833. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/routes.rb +64 -0
  834. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config.ru +4 -0
  835. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +11 -0
  836. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb +12 -0
  837. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +11 -0
  838. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/schema.rb +43 -0
  839. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/seeds.rb +7 -0
  840. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/doc/README_FOR_APP +2 -0
  841. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/404.html +26 -0
  842. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/422.html +26 -0
  843. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/500.html +25 -0
  844. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/favicon.ico +0 -0
  845. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/robots.txt +5 -0
  846. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/script/rails +6 -0
  847. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/comments.yml +11 -0
  848. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/posts.yml +11 -0
  849. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/tags.yml +9 -0
  850. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/comments_controller_test.rb +7 -0
  851. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/home_controller_test.rb +9 -0
  852. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/posts_controller_test.rb +49 -0
  853. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/performance/browsing_test.rb +12 -0
  854. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/test_helper.rb +13 -0
  855. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/comment_test.rb +7 -0
  856. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb +4 -0
  857. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/home_helper_test.rb +4 -0
  858. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb +4 -0
  859. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/post_test.rb +7 -0
  860. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/tag_test.rb +7 -0
  861. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/generator.rb +310 -0
  862. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/helpers.rb +45 -0
  863. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/indexer.rb +69 -0
  864. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/levenshtein.rb +31 -0
  865. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/textile_extensions.rb +63 -0
  866. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides.rb +50 -0
  867. data/vendor/bundle/gems/railties-3.2.5/guides/source/2_2_release_notes.textile +422 -0
  868. data/vendor/bundle/gems/railties-3.2.5/guides/source/2_3_release_notes.textile +610 -0
  869. data/vendor/bundle/gems/railties-3.2.5/guides/source/3_0_release_notes.textile +595 -0
  870. data/vendor/bundle/gems/railties-3.2.5/guides/source/3_1_release_notes.textile +431 -0
  871. data/vendor/bundle/gems/railties-3.2.5/guides/source/3_2_release_notes.textile +540 -0
  872. data/vendor/bundle/gems/railties-3.2.5/guides/source/_license.html.erb +2 -0
  873. data/vendor/bundle/gems/railties-3.2.5/guides/source/_welcome.html.erb +19 -0
  874. data/vendor/bundle/gems/railties-3.2.5/guides/source/action_controller_overview.textile +820 -0
  875. data/vendor/bundle/gems/railties-3.2.5/guides/source/action_mailer_basics.textile +516 -0
  876. data/vendor/bundle/gems/railties-3.2.5/guides/source/action_view_overview.textile +1497 -0
  877. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_model_basics.textile +205 -0
  878. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_basics.textile +218 -0
  879. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_querying.textile +1433 -0
  880. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_validations_callbacks.textile +1283 -0
  881. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_resource_basics.textile +120 -0
  882. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_support_core_extensions.textile +3713 -0
  883. data/vendor/bundle/gems/railties-3.2.5/guides/source/ajax_on_rails.textile +267 -0
  884. data/vendor/bundle/gems/railties-3.2.5/guides/source/api_documentation_guidelines.textile +185 -0
  885. data/vendor/bundle/gems/railties-3.2.5/guides/source/asset_pipeline.textile +707 -0
  886. data/vendor/bundle/gems/railties-3.2.5/guides/source/association_basics.textile +1959 -0
  887. data/vendor/bundle/gems/railties-3.2.5/guides/source/caching_with_rails.textile +437 -0
  888. data/vendor/bundle/gems/railties-3.2.5/guides/source/command_line.textile +574 -0
  889. data/vendor/bundle/gems/railties-3.2.5/guides/source/configuring.textile +641 -0
  890. data/vendor/bundle/gems/railties-3.2.5/guides/source/contributing_to_ruby_on_rails.textile +423 -0
  891. data/vendor/bundle/gems/railties-3.2.5/guides/source/credits.html.erb +72 -0
  892. data/vendor/bundle/gems/railties-3.2.5/guides/source/debugging_rails_applications.textile +714 -0
  893. data/vendor/bundle/gems/railties-3.2.5/guides/source/documents.yaml +157 -0
  894. data/vendor/bundle/gems/railties-3.2.5/guides/source/engines.textile +618 -0
  895. data/vendor/bundle/gems/railties-3.2.5/guides/source/form_helpers.textile +798 -0
  896. data/vendor/bundle/gems/railties-3.2.5/guides/source/generators.textile +621 -0
  897. data/vendor/bundle/gems/railties-3.2.5/guides/source/getting_started.textile +1929 -0
  898. data/vendor/bundle/gems/railties-3.2.5/guides/source/i18n.textile +931 -0
  899. data/vendor/bundle/gems/railties-3.2.5/guides/source/index.html.erb +30 -0
  900. data/vendor/bundle/gems/railties-3.2.5/guides/source/initialization.textile +1116 -0
  901. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/KINDLE.md +26 -0
  902. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/copyright.html.erb +1 -0
  903. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/layout.html.erb +27 -0
  904. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/rails_guides.opf.erb +52 -0
  905. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/toc.html.erb +24 -0
  906. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/toc.ncx.erb +64 -0
  907. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/welcome.html.erb +5 -0
  908. data/vendor/bundle/gems/railties-3.2.5/guides/source/layout.html.erb +124 -0
  909. data/vendor/bundle/gems/railties-3.2.5/guides/source/layouts_and_rendering.textile +1237 -0
  910. data/vendor/bundle/gems/railties-3.2.5/guides/source/migrations.textile +900 -0
  911. data/vendor/bundle/gems/railties-3.2.5/guides/source/nested_model_forms.textile +222 -0
  912. data/vendor/bundle/gems/railties-3.2.5/guides/source/performance_testing.textile +597 -0
  913. data/vendor/bundle/gems/railties-3.2.5/guides/source/plugins.textile +464 -0
  914. data/vendor/bundle/gems/railties-3.2.5/guides/source/rails_application_templates.textile +240 -0
  915. data/vendor/bundle/gems/railties-3.2.5/guides/source/rails_on_rack.textile +236 -0
  916. data/vendor/bundle/gems/railties-3.2.5/guides/source/routing.textile +885 -0
  917. data/vendor/bundle/gems/railties-3.2.5/guides/source/ruby_on_rails_guides_guidelines.textile +79 -0
  918. data/vendor/bundle/gems/railties-3.2.5/guides/source/security.textile +1004 -0
  919. data/vendor/bundle/gems/railties-3.2.5/guides/source/testing.textile +947 -0
  920. data/vendor/bundle/gems/railties-3.2.5/guides/w3c_validator.rb +91 -0
  921. data/vendor/bundle/gems/railties-3.2.5/lib/rails/all.rb +15 -0
  922. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/bootstrap.rb +73 -0
  923. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/configuration.rb +151 -0
  924. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/finisher.rb +98 -0
  925. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/railties.rb +13 -0
  926. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/route_inspector.rb +84 -0
  927. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/routes_reloader.rb +56 -0
  928. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application.rb +315 -0
  929. data/vendor/bundle/gems/railties-3.2.5/lib/rails/backtrace_cleaner.rb +42 -0
  930. data/vendor/bundle/gems/railties-3.2.5/lib/rails/cli.rb +16 -0
  931. data/vendor/bundle/gems/railties-3.2.5/lib/rails/code_statistics.rb +118 -0
  932. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/application.rb +38 -0
  933. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/benchmarker.rb +34 -0
  934. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/console.rb +55 -0
  935. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/dbconsole.rb +123 -0
  936. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/destroy.rb +10 -0
  937. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/generate.rb +12 -0
  938. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/plugin.rb +544 -0
  939. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/plugin_new.rb +11 -0
  940. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/profiler.rb +32 -0
  941. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/runner.rb +54 -0
  942. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/server.rb +100 -0
  943. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/update.rb +9 -0
  944. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands.rb +104 -0
  945. data/vendor/bundle/gems/railties-3.2.5/lib/rails/configuration.rb +89 -0
  946. data/vendor/bundle/gems/railties-3.2.5/lib/rails/console/app.rb +36 -0
  947. data/vendor/bundle/gems/railties-3.2.5/lib/rails/console/helpers.rb +11 -0
  948. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/commands.rb +43 -0
  949. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/configuration.rb +84 -0
  950. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/railties.rb +33 -0
  951. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine.rb +657 -0
  952. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/actions.rb +325 -0
  953. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/active_model.rb +78 -0
  954. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/app_base.rb +281 -0
  955. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/base.rb +389 -0
  956. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/assets/assets_generator.rb +13 -0
  957. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/assets/templates/stylesheet.css +4 -0
  958. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/scaffold/scaffold_generator.rb +16 -0
  959. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/controller/controller_generator.rb +20 -0
  960. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/controller/templates/view.html.erb +2 -0
  961. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/mailer/mailer_generator.rb +13 -0
  962. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/mailer/templates/view.text.erb +3 -0
  963. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/scaffold_generator.rb +29 -0
  964. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/_form.html.erb +23 -0
  965. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/edit.html.erb +6 -0
  966. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/index.html.erb +27 -0
  967. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/new.html.erb +5 -0
  968. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/show.html.erb +12 -0
  969. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb.rb +21 -0
  970. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/generated_attribute.rb +107 -0
  971. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/js/assets/assets_generator.rb +13 -0
  972. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/js/assets/templates/javascript.js +2 -0
  973. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/migration.rb +68 -0
  974. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/named_base.rb +202 -0
  975. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/USAGE +15 -0
  976. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/app_generator.rb +303 -0
  977. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/Gemfile +26 -0
  978. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/README +261 -0
  979. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/Rakefile +7 -0
  980. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/images/rails.png +0 -0
  981. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +17 -0
  982. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +13 -0
  983. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb +3 -0
  984. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb +2 -0
  985. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +14 -0
  986. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/application.rb +74 -0
  987. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/boot.rb +6 -0
  988. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +31 -0
  989. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +86 -0
  990. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +62 -0
  991. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +33 -0
  992. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +43 -0
  993. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +20 -0
  994. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +54 -0
  995. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +39 -0
  996. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +55 -0
  997. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +25 -0
  998. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environment.rb +5 -0
  999. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +41 -0
  1000. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +73 -0
  1001. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +39 -0
  1002. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb +7 -0
  1003. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb +15 -0
  1004. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb +5 -0
  1005. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +7 -0
  1006. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +8 -0
  1007. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +16 -0
  1008. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/locales/en.yml +5 -0
  1009. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/routes.rb +58 -0
  1010. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config.ru +4 -0
  1011. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +7 -0
  1012. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/doc/README_FOR_APP +2 -0
  1013. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/gitignore +15 -0
  1014. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/404.html +26 -0
  1015. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/422.html +26 -0
  1016. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/500.html +25 -0
  1017. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/favicon.ico +0 -0
  1018. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/index.html +241 -0
  1019. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/robots.txt +5 -0
  1020. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/script/rails +5 -0
  1021. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb +12 -0
  1022. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/test/test_helper.rb +15 -0
  1023. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/USAGE +20 -0
  1024. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/assets_generator.rb +25 -0
  1025. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/templates/javascript.js +2 -0
  1026. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/templates/stylesheet.css +4 -0
  1027. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/USAGE +18 -0
  1028. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/controller_generator.rb +20 -0
  1029. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/templates/controller.rb +13 -0
  1030. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/USAGE +12 -0
  1031. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/generator_generator.rb +25 -0
  1032. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +3 -0
  1033. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/templates/USAGE.tt +8 -0
  1034. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/USAGE +17 -0
  1035. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/helper_generator.rb +13 -0
  1036. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/templates/helper.rb +4 -0
  1037. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/integration_test/USAGE +10 -0
  1038. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/integration_test/integration_test_generator.rb +7 -0
  1039. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/migration/USAGE +29 -0
  1040. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/migration/migration_generator.rb +8 -0
  1041. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/model/USAGE +45 -0
  1042. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/model/model_generator.rb +8 -0
  1043. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/observer/USAGE +12 -0
  1044. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/observer/observer_generator.rb +7 -0
  1045. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/performance_test/USAGE +10 -0
  1046. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/performance_test/performance_test_generator.rb +7 -0
  1047. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/USAGE +10 -0
  1048. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +318 -0
  1049. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +27 -0
  1050. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/Gemfile +23 -0
  1051. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE +20 -0
  1052. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/README.rdoc +3 -0
  1053. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/Rakefile +31 -0
  1054. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt +4 -0
  1055. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt +4 -0
  1056. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt +14 -0
  1057. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/config/routes.rb +6 -0
  1058. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/gitignore +7 -0
  1059. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb +7 -0
  1060. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb +3 -0
  1061. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb +6 -0
  1062. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake +4 -0
  1063. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +18 -0
  1064. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb +10 -0
  1065. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/routes.rb +4 -0
  1066. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/script/rails.tt +7 -0
  1067. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb +7 -0
  1068. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb +12 -0
  1069. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb +15 -0
  1070. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource/USAGE +23 -0
  1071. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource/resource_generator.rb +20 -0
  1072. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource_route/resource_route_generator.rb +13 -0
  1073. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/USAGE +35 -0
  1074. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/scaffold_generator.rb +23 -0
  1075. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/templates/scaffold.css +56 -0
  1076. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/USAGE +20 -0
  1077. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +25 -0
  1078. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +89 -0
  1079. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/session_migration/USAGE +8 -0
  1080. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/session_migration/session_migration_generator.rb +8 -0
  1081. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/USAGE +9 -0
  1082. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/task_generator.rb +12 -0
  1083. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/templates/task.rb +8 -0
  1084. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/resource_helpers.rb +80 -0
  1085. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_case.rb +247 -0
  1086. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/controller/controller_generator.rb +15 -0
  1087. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/controller/templates/functional_test.rb +19 -0
  1088. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/helper/helper_generator.rb +13 -0
  1089. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/helper/templates/helper_test.rb +6 -0
  1090. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/integration/integration_generator.rb +13 -0
  1091. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/integration/templates/integration_test.rb +7 -0
  1092. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/mailer/mailer_generator.rb +14 -0
  1093. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/mailer/templates/functional_test.rb +21 -0
  1094. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/model_generator.rb +24 -0
  1095. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/templates/fixtures.yml +23 -0
  1096. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/templates/unit_test.rb +9 -0
  1097. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/observer/observer_generator.rb +13 -0
  1098. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/observer/templates/unit_test.rb +9 -0
  1099. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/performance/performance_generator.rb +13 -0
  1100. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/performance/templates/performance_test.rb +12 -0
  1101. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/plugin_generator.rb +13 -0
  1102. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt +7 -0
  1103. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/templates/test_helper.rb +3 -0
  1104. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +38 -0
  1105. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +51 -0
  1106. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit.rb +8 -0
  1107. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators.rb +339 -0
  1108. data/vendor/bundle/gems/railties-3.2.5/lib/rails/info.rb +116 -0
  1109. data/vendor/bundle/gems/railties-3.2.5/lib/rails/info_controller.rb +15 -0
  1110. data/vendor/bundle/gems/railties-3.2.5/lib/rails/initializable.rb +89 -0
  1111. data/vendor/bundle/gems/railties-3.2.5/lib/rails/paths.rb +211 -0
  1112. data/vendor/bundle/gems/railties-3.2.5/lib/rails/performance_test_help.rb +3 -0
  1113. data/vendor/bundle/gems/railties-3.2.5/lib/rails/plugin.rb +92 -0
  1114. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/debugger.rb +24 -0
  1115. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/log_tailer.rb +34 -0
  1116. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/logger.rb +47 -0
  1117. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack.rb +7 -0
  1118. data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie/configurable.rb +35 -0
  1119. data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie/configuration.rb +90 -0
  1120. data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie.rb +202 -0
  1121. data/vendor/bundle/gems/railties-3.2.5/lib/rails/ruby_version_check.rb +23 -0
  1122. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rubyprof_ext.rb +35 -0
  1123. data/vendor/bundle/gems/railties-3.2.5/lib/rails/script_rails_loader.rb +29 -0
  1124. data/vendor/bundle/gems/railties-3.2.5/lib/rails/source_annotation_extractor.rb +104 -0
  1125. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/annotations.rake +20 -0
  1126. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/documentation.rake +155 -0
  1127. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/engine.rake +72 -0
  1128. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/framework.rake +76 -0
  1129. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/log.rake +9 -0
  1130. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/middleware.rake +7 -0
  1131. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/misc.rake +67 -0
  1132. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/routes.rake +9 -0
  1133. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/statistics.rake +16 -0
  1134. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/tmp.rake +37 -0
  1135. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks.rb +16 -0
  1136. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_help.rb +56 -0
  1137. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/railtie.rb +15 -0
  1138. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/sub_test_task.rb +8 -0
  1139. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/testing.rake +146 -0
  1140. data/vendor/bundle/gems/railties-3.2.5/lib/rails/version.rb +10 -0
  1141. data/vendor/bundle/gems/railties-3.2.5/lib/rails.rb +126 -0
  1142. data/vendor/bundle/gems/thor-0.15.2/CHANGELOG.rdoc +103 -0
  1143. data/vendor/bundle/gems/thor-0.15.2/Gemfile +15 -0
  1144. data/vendor/bundle/gems/thor-0.15.2/LICENSE.md +20 -0
  1145. data/vendor/bundle/gems/thor-0.15.2/README.md +28 -0
  1146. data/vendor/bundle/gems/thor-0.15.2/Thorfile +30 -0
  1147. data/vendor/bundle/gems/thor-0.15.2/bin/rake2thor +86 -0
  1148. data/vendor/bundle/gems/thor-0.15.2/bin/thor +6 -0
  1149. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/create_file.rb +105 -0
  1150. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/create_link.rb +57 -0
  1151. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/directory.rb +97 -0
  1152. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/empty_directory.rb +153 -0
  1153. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/file_manipulation.rb +308 -0
  1154. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/inject_into_file.rb +109 -0
  1155. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions.rb +318 -0
  1156. data/vendor/bundle/gems/thor-0.15.2/lib/thor/base.rb +617 -0
  1157. data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/file_binary_read.rb +9 -0
  1158. data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/hash_with_indifferent_access.rb +75 -0
  1159. data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/ordered_hash.rb +100 -0
  1160. data/vendor/bundle/gems/thor-0.15.2/lib/thor/error.rb +35 -0
  1161. data/vendor/bundle/gems/thor-0.15.2/lib/thor/group.rb +285 -0
  1162. data/vendor/bundle/gems/thor-0.15.2/lib/thor/invocation.rb +170 -0
  1163. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/argument.rb +67 -0
  1164. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/arguments.rb +165 -0
  1165. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/option.rb +121 -0
  1166. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/options.rb +178 -0
  1167. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser.rb +4 -0
  1168. data/vendor/bundle/gems/thor-0.15.2/lib/thor/rake_compat.rb +71 -0
  1169. data/vendor/bundle/gems/thor-0.15.2/lib/thor/runner.rb +321 -0
  1170. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/basic.rb +389 -0
  1171. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/color.rb +144 -0
  1172. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/html.rb +123 -0
  1173. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell.rb +88 -0
  1174. data/vendor/bundle/gems/thor-0.15.2/lib/thor/task.rb +132 -0
  1175. data/vendor/bundle/gems/thor-0.15.2/lib/thor/util.rb +248 -0
  1176. data/vendor/bundle/gems/thor-0.15.2/lib/thor/version.rb +3 -0
  1177. data/vendor/bundle/gems/thor-0.15.2/lib/thor.rb +379 -0
  1178. data/vendor/bundle/gems/thor-0.15.2/spec/actions/create_file_spec.rb +170 -0
  1179. data/vendor/bundle/gems/thor-0.15.2/spec/actions/create_link_spec.rb +81 -0
  1180. data/vendor/bundle/gems/thor-0.15.2/spec/actions/directory_spec.rb +136 -0
  1181. data/vendor/bundle/gems/thor-0.15.2/spec/actions/empty_directory_spec.rb +130 -0
  1182. data/vendor/bundle/gems/thor-0.15.2/spec/actions/file_manipulation_spec.rb +370 -0
  1183. data/vendor/bundle/gems/thor-0.15.2/spec/actions/inject_into_file_spec.rb +135 -0
  1184. data/vendor/bundle/gems/thor-0.15.2/spec/actions_spec.rb +326 -0
  1185. data/vendor/bundle/gems/thor-0.15.2/spec/base_spec.rb +274 -0
  1186. data/vendor/bundle/gems/thor-0.15.2/spec/core_ext/hash_with_indifferent_access_spec.rb +43 -0
  1187. data/vendor/bundle/gems/thor-0.15.2/spec/core_ext/ordered_hash_spec.rb +115 -0
  1188. data/vendor/bundle/gems/thor-0.15.2/spec/exit_condition_spec.rb +19 -0
  1189. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/application.rb +2 -0
  1190. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/bundle/execute.rb +6 -0
  1191. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/bundle/main.thor +1 -0
  1192. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/%file_name%.rb.tt +1 -0
  1193. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/COMMENTER +10 -0
  1194. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/README +3 -0
  1195. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/block_helper.rb +3 -0
  1196. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/config.rb +1 -0
  1197. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/config.yaml.tt +1 -0
  1198. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/group.thor +114 -0
  1199. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/invoke.thor +112 -0
  1200. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/path with spaces +0 -0
  1201. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/script.thor +190 -0
  1202. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/task.thor +10 -0
  1203. data/vendor/bundle/gems/thor-0.15.2/spec/group_spec.rb +216 -0
  1204. data/vendor/bundle/gems/thor-0.15.2/spec/invocation_spec.rb +100 -0
  1205. data/vendor/bundle/gems/thor-0.15.2/spec/parser/argument_spec.rb +47 -0
  1206. data/vendor/bundle/gems/thor-0.15.2/spec/parser/arguments_spec.rb +65 -0
  1207. data/vendor/bundle/gems/thor-0.15.2/spec/parser/option_spec.rb +202 -0
  1208. data/vendor/bundle/gems/thor-0.15.2/spec/parser/options_spec.rb +329 -0
  1209. data/vendor/bundle/gems/thor-0.15.2/spec/rake_compat_spec.rb +72 -0
  1210. data/vendor/bundle/gems/thor-0.15.2/spec/register_spec.rb +135 -0
  1211. data/vendor/bundle/gems/thor-0.15.2/spec/runner_spec.rb +241 -0
  1212. data/vendor/bundle/gems/thor-0.15.2/spec/shell/basic_spec.rb +300 -0
  1213. data/vendor/bundle/gems/thor-0.15.2/spec/shell/color_spec.rb +81 -0
  1214. data/vendor/bundle/gems/thor-0.15.2/spec/shell/html_spec.rb +32 -0
  1215. data/vendor/bundle/gems/thor-0.15.2/spec/shell_spec.rb +47 -0
  1216. data/vendor/bundle/gems/thor-0.15.2/spec/spec_helper.rb +58 -0
  1217. data/vendor/bundle/gems/thor-0.15.2/spec/task_spec.rb +79 -0
  1218. data/vendor/bundle/gems/thor-0.15.2/spec/thor_spec.rb +387 -0
  1219. data/vendor/bundle/gems/thor-0.15.2/spec/util_spec.rb +163 -0
  1220. data/vendor/bundle/gems/thor-0.15.2/thor.gemspec +26 -0
  1221. data/vendor/bundle/gems/yard-0.8.2/ChangeLog +12178 -0
  1222. data/vendor/bundle/gems/yard-0.8.2/LEGAL +74 -0
  1223. data/vendor/bundle/gems/yard-0.8.2/LICENSE +22 -0
  1224. data/vendor/bundle/gems/yard-0.8.2/README.md +553 -0
  1225. data/vendor/bundle/gems/yard-0.8.2/Rakefile +93 -0
  1226. data/vendor/bundle/gems/yard-0.8.2/benchmarks/builtins_vs_eval.rb +23 -0
  1227. data/vendor/bundle/gems/yard-0.8.2/benchmarks/concat_vs_join.rb +12 -0
  1228. data/vendor/bundle/gems/yard-0.8.2/benchmarks/erb_vs_erubis.rb +53 -0
  1229. data/vendor/bundle/gems/yard-0.8.2/benchmarks/format_args.rb +46 -0
  1230. data/vendor/bundle/gems/yard-0.8.2/benchmarks/generation.rb +37 -0
  1231. data/vendor/bundle/gems/yard-0.8.2/benchmarks/marshal_vs_dbm.rb +63 -0
  1232. data/vendor/bundle/gems/yard-0.8.2/benchmarks/parsing.rb +46 -0
  1233. data/vendor/bundle/gems/yard-0.8.2/benchmarks/pathname_vs_string.rb +50 -0
  1234. data/vendor/bundle/gems/yard-0.8.2/benchmarks/rdoc_vs_yardoc.rb +10 -0
  1235. data/vendor/bundle/gems/yard-0.8.2/benchmarks/registry_store_types.rb +48 -0
  1236. data/vendor/bundle/gems/yard-0.8.2/benchmarks/ri_vs_yri.rb +18 -0
  1237. data/vendor/bundle/gems/yard-0.8.2/benchmarks/ripper_parser.rb +12 -0
  1238. data/vendor/bundle/gems/yard-0.8.2/benchmarks/splat_vs_flatten.rb +12 -0
  1239. data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_erb.rb +22 -0
  1240. data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_format.rb +6 -0
  1241. data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_profile.rb +17 -0
  1242. data/vendor/bundle/gems/yard-0.8.2/benchmarks/yri_cache.rb +19 -0
  1243. data/vendor/bundle/gems/yard-0.8.2/bin/yard +12 -0
  1244. data/vendor/bundle/gems/yard-0.8.2/bin/yardoc +12 -0
  1245. data/vendor/bundle/gems/yard-0.8.2/bin/yri +12 -0
  1246. data/vendor/bundle/gems/yard-0.8.2/docs/CodeObjects.md +115 -0
  1247. data/vendor/bundle/gems/yard-0.8.2/docs/GettingStarted.md +592 -0
  1248. data/vendor/bundle/gems/yard-0.8.2/docs/Handlers.md +152 -0
  1249. data/vendor/bundle/gems/yard-0.8.2/docs/Overview.md +61 -0
  1250. data/vendor/bundle/gems/yard-0.8.2/docs/Parser.md +191 -0
  1251. data/vendor/bundle/gems/yard-0.8.2/docs/Tags.md +282 -0
  1252. data/vendor/bundle/gems/yard-0.8.2/docs/TagsArch.md +123 -0
  1253. data/vendor/bundle/gems/yard-0.8.2/docs/Templates.md +496 -0
  1254. data/vendor/bundle/gems/yard-0.8.2/docs/WhatsNew.md +1166 -0
  1255. data/vendor/bundle/gems/yard-0.8.2/docs/images/code-objects-class-diagram.png +0 -0
  1256. data/vendor/bundle/gems/yard-0.8.2/docs/images/handlers-class-diagram.png +0 -0
  1257. data/vendor/bundle/gems/yard-0.8.2/docs/images/overview-class-diagram.png +0 -0
  1258. data/vendor/bundle/gems/yard-0.8.2/docs/images/parser-class-diagram.png +0 -0
  1259. data/vendor/bundle/gems/yard-0.8.2/docs/images/tags-class-diagram.png +0 -0
  1260. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/fulldoc/html/full_list_tag.erb +7 -0
  1261. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/fulldoc/html/setup.rb +6 -0
  1262. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/layout/html/setup.rb +8 -0
  1263. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/layout/html/tag_list.erb +11 -0
  1264. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/list.erb +18 -0
  1265. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/setup.rb +27 -0
  1266. data/vendor/bundle/gems/yard-0.8.2/docs/templates/plugin.rb +65 -0
  1267. data/vendor/bundle/gems/yard-0.8.2/lib/rubygems_plugin.rb +4 -0
  1268. data/vendor/bundle/gems/yard-0.8.2/lib/yard/autoload.rb +284 -0
  1269. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/command.rb +76 -0
  1270. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/command_parser.rb +90 -0
  1271. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/config.rb +136 -0
  1272. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/diff.rb +201 -0
  1273. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/gems.rb +83 -0
  1274. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/graph.rb +121 -0
  1275. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/help.rb +18 -0
  1276. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/i18n.rb +69 -0
  1277. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/list.rb +22 -0
  1278. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/server.rb +183 -0
  1279. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/stats.rb +213 -0
  1280. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/yardoc.rb +776 -0
  1281. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/yri.rb +214 -0
  1282. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/base.rb +551 -0
  1283. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/class_object.rb +143 -0
  1284. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/class_variable_object.rb +8 -0
  1285. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/constant_object.rb +13 -0
  1286. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/extended_method_object.rb +23 -0
  1287. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/extra_file_object.rb +89 -0
  1288. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/macro_object.rb +172 -0
  1289. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/method_object.rb +191 -0
  1290. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/module_object.rb +18 -0
  1291. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/namespace_object.rb +200 -0
  1292. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/proxy.rb +257 -0
  1293. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/root_object.rb +16 -0
  1294. data/vendor/bundle/gems/yard-0.8.2/lib/yard/config.rb +269 -0
  1295. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/array.rb +15 -0
  1296. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/file.rb +65 -0
  1297. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/hash.rb +15 -0
  1298. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/insertion.rb +60 -0
  1299. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/module.rb +19 -0
  1300. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/string.rb +67 -0
  1301. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/symbol_hash.rb +73 -0
  1302. data/vendor/bundle/gems/yard-0.8.2/lib/yard/docstring.rb +317 -0
  1303. data/vendor/bundle/gems/yard-0.8.2/lib/yard/docstring_parser.rb +298 -0
  1304. data/vendor/bundle/gems/yard-0.8.2/lib/yard/globals.rb +18 -0
  1305. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/base.rb +581 -0
  1306. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/alias_handler.rb +15 -0
  1307. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/attribute_handler.rb +13 -0
  1308. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/base.rb +110 -0
  1309. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/class_handler.rb +26 -0
  1310. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/constant_handler.rb +12 -0
  1311. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/handler_methods.rb +166 -0
  1312. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/init_handler.rb +18 -0
  1313. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/method_handler.rb +35 -0
  1314. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/mixin_handler.rb +13 -0
  1315. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/module_handler.rb +16 -0
  1316. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/override_comment_handler.rb +30 -0
  1317. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/path_handler.rb +10 -0
  1318. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/struct_handler.rb +12 -0
  1319. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/symbol_handler.rb +7 -0
  1320. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/processor.rb +198 -0
  1321. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/alias_handler.rb +41 -0
  1322. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/attribute_handler.rb +82 -0
  1323. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/base.rb +164 -0
  1324. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_condition_handler.rb +86 -0
  1325. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_handler.rb +122 -0
  1326. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_variable_handler.rb +16 -0
  1327. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/comment_handler.rb +9 -0
  1328. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/constant_handler.rb +45 -0
  1329. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/dsl_handler.rb +14 -0
  1330. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/dsl_handler_methods.rb +71 -0
  1331. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/exception_handler.rb +26 -0
  1332. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/extend_handler.rb +21 -0
  1333. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/alias_handler.rb +34 -0
  1334. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/attribute_handler.rb +60 -0
  1335. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/base.rb +250 -0
  1336. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_condition_handler.rb +83 -0
  1337. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_handler.rb +110 -0
  1338. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +14 -0
  1339. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/comment_handler.rb +9 -0
  1340. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/constant_handler.rb +28 -0
  1341. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/dsl_handler.rb +16 -0
  1342. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/exception_handler.rb +12 -0
  1343. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/extend_handler.rb +20 -0
  1344. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/method_handler.rb +78 -0
  1345. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/mixin_handler.rb +39 -0
  1346. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/module_function_handler.rb +18 -0
  1347. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/module_handler.rb +11 -0
  1348. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +21 -0
  1349. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/visibility_handler.rb +16 -0
  1350. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/yield_handler.rb +28 -0
  1351. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/method_condition_handler.rb +8 -0
  1352. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/method_handler.rb +91 -0
  1353. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/mixin_handler.rb +36 -0
  1354. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/module_function_handler.rb +26 -0
  1355. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/module_handler.rb +11 -0
  1356. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/private_constant_handler.rb +36 -0
  1357. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/struct_handler_methods.rb +141 -0
  1358. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/visibility_handler.rb +24 -0
  1359. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/yield_handler.rb +30 -0
  1360. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/locale.rb +50 -0
  1361. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/message.rb +56 -0
  1362. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/messages.rb +55 -0
  1363. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/pot_generator.rb +280 -0
  1364. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/text.rb +173 -0
  1365. data/vendor/bundle/gems/yard-0.8.2/lib/yard/logging.rb +164 -0
  1366. data/vendor/bundle/gems/yard-0.8.2/lib/yard/options.rb +216 -0
  1367. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/base.rb +56 -0
  1368. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/c_parser.rb +225 -0
  1369. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/comment_parser.rb +131 -0
  1370. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/statement.rb +63 -0
  1371. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/ast_node.rb +489 -0
  1372. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/ruby_lex.rb +1376 -0
  1373. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/ruby_parser.rb +31 -0
  1374. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/statement.rb +65 -0
  1375. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/statement_list.rb +381 -0
  1376. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/token_list.rb +66 -0
  1377. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/ruby_parser.rb +615 -0
  1378. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/source_parser.rb +519 -0
  1379. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rake/yardoc_task.rb +75 -0
  1380. data/vendor/bundle/gems/yard-0.8.2/lib/yard/registry.rb +419 -0
  1381. data/vendor/bundle/gems/yard-0.8.2/lib/yard/registry_store.rb +305 -0
  1382. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/LICENSE.txt +57 -0
  1383. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/MIT.txt +20 -0
  1384. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/gem.rb +8 -0
  1385. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/source_index.rb +353 -0
  1386. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports.rb +8 -0
  1387. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/doc_manager.rb +79 -0
  1388. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/specification.rb +41 -0
  1389. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/base.rb +80 -0
  1390. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/file_system_serializer.rb +90 -0
  1391. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/process_serializer.rb +24 -0
  1392. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/stdout_serializer.rb +32 -0
  1393. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/yardoc_serializer.rb +124 -0
  1394. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/adapter.rb +100 -0
  1395. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/base.rb +193 -0
  1396. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/display_file_command.rb +24 -0
  1397. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/display_object_command.rb +58 -0
  1398. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/frames_command.rb +15 -0
  1399. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/library_command.rb +147 -0
  1400. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/library_index_command.rb +24 -0
  1401. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/list_command.rb +24 -0
  1402. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/search_command.rb +78 -0
  1403. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/static_file_command.rb +50 -0
  1404. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/doc_server_helper.rb +74 -0
  1405. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/doc_server_serializer.rb +33 -0
  1406. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/library_version.rb +227 -0
  1407. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/rack_adapter.rb +88 -0
  1408. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/router.rb +176 -0
  1409. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/static_caching.rb +45 -0
  1410. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/css/custom.css +78 -0
  1411. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/images/processing.gif +0 -0
  1412. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/js/autocomplete.js +12 -0
  1413. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/breadcrumb.erb +46 -0
  1414. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/script_setup.erb +8 -0
  1415. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/setup.rb +7 -0
  1416. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/method_details/html/permalink.erb +4 -0
  1417. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/method_details/html/setup.rb +4 -0
  1418. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/contents.erb +13 -0
  1419. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/headers.erb +26 -0
  1420. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/library_list.erb +12 -0
  1421. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/setup.rb +3 -0
  1422. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/title.erb +2 -0
  1423. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/processing/html/processing.erb +51 -0
  1424. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/processing/html/setup.rb +3 -0
  1425. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/search/html/search.erb +18 -0
  1426. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/search/html/setup.rb +8 -0
  1427. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/webrick_adapter.rb +43 -0
  1428. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server.rb +11 -0
  1429. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/default_factory.rb +176 -0
  1430. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/default_tag.rb +12 -0
  1431. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/directives.rb +594 -0
  1432. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/library.rb +630 -0
  1433. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/option_tag.rb +12 -0
  1434. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/overload_tag.rb +65 -0
  1435. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/ref_tag.rb +7 -0
  1436. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/ref_tag_list.rb +27 -0
  1437. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/tag.rb +57 -0
  1438. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/tag_format_error.rb +6 -0
  1439. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/engine.rb +185 -0
  1440. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/erb_cache.rb +22 -0
  1441. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/base_helper.rb +212 -0
  1442. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/filter_helper.rb +26 -0
  1443. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/html_helper.rb +589 -0
  1444. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +59 -0
  1445. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/markup/rdoc_markup.rb +85 -0
  1446. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/markup_helper.rb +164 -0
  1447. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/method_helper.rb +72 -0
  1448. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/module_helper.rb +19 -0
  1449. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/text_helper.rb +95 -0
  1450. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/uml_helper.rb +46 -0
  1451. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/section.rb +106 -0
  1452. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/template.rb +395 -0
  1453. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/template_options.rb +88 -0
  1454. data/vendor/bundle/gems/yard-0.8.2/lib/yard/verifier.rb +148 -0
  1455. data/vendor/bundle/gems/yard-0.8.2/lib/yard.rb +48 -0
  1456. data/vendor/bundle/gems/yard-0.8.2/spec/cli/command_parser_spec.rb +43 -0
  1457. data/vendor/bundle/gems/yard-0.8.2/spec/cli/command_spec.rb +36 -0
  1458. data/vendor/bundle/gems/yard-0.8.2/spec/cli/config_spec.rb +92 -0
  1459. data/vendor/bundle/gems/yard-0.8.2/spec/cli/diff_spec.rb +175 -0
  1460. data/vendor/bundle/gems/yard-0.8.2/spec/cli/gems_spec.rb +81 -0
  1461. data/vendor/bundle/gems/yard-0.8.2/spec/cli/graph_spec.rb +10 -0
  1462. data/vendor/bundle/gems/yard-0.8.2/spec/cli/help_spec.rb +22 -0
  1463. data/vendor/bundle/gems/yard-0.8.2/spec/cli/i18n_spec.rb +111 -0
  1464. data/vendor/bundle/gems/yard-0.8.2/spec/cli/list_spec.rb +8 -0
  1465. data/vendor/bundle/gems/yard-0.8.2/spec/cli/server_spec.rb +219 -0
  1466. data/vendor/bundle/gems/yard-0.8.2/spec/cli/stats_spec.rb +90 -0
  1467. data/vendor/bundle/gems/yard-0.8.2/spec/cli/yardoc_spec.rb +741 -0
  1468. data/vendor/bundle/gems/yard-0.8.2/spec/cli/yri_spec.rb +99 -0
  1469. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/base_spec.rb +392 -0
  1470. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/class_object_spec.rb +225 -0
  1471. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/code_object_list_spec.rb +33 -0
  1472. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/constants_spec.rb +82 -0
  1473. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/extra_file_object_spec.rb +132 -0
  1474. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/macro_object_spec.rb +148 -0
  1475. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/method_object_spec.rb +175 -0
  1476. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/module_object_spec.rb +141 -0
  1477. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/namespace_object_spec.rb +170 -0
  1478. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/proxy_spec.rb +140 -0
  1479. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/spec_helper.rb +3 -0
  1480. data/vendor/bundle/gems/yard-0.8.2/spec/config_spec.rb +176 -0
  1481. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/array_spec.rb +14 -0
  1482. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/file_spec.rb +68 -0
  1483. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/hash_spec.rb +14 -0
  1484. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/insertion_spec.rb +37 -0
  1485. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/module_spec.rb +15 -0
  1486. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/string_spec.rb +42 -0
  1487. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/symbol_hash_spec.rb +86 -0
  1488. data/vendor/bundle/gems/yard-0.8.2/spec/docstring_parser_spec.rb +224 -0
  1489. data/vendor/bundle/gems/yard-0.8.2/spec/docstring_spec.rb +287 -0
  1490. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/alias_handler_spec.rb +80 -0
  1491. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/attribute_handler_spec.rb +94 -0
  1492. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/base_spec.rb +197 -0
  1493. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/alias_handler_spec.rb +33 -0
  1494. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/attribute_handler_spec.rb +40 -0
  1495. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/class_handler_spec.rb +63 -0
  1496. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/constant_handler_spec.rb +68 -0
  1497. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/init_handler_spec.rb +47 -0
  1498. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/method_handler_spec.rb +228 -0
  1499. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/mixin_handler_spec.rb +27 -0
  1500. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/module_handler_spec.rb +38 -0
  1501. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/override_comment_handler_spec.rb +46 -0
  1502. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/path_handler_spec.rb +35 -0
  1503. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/spec_helper.rb +11 -0
  1504. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/struct_handler_spec.rb +15 -0
  1505. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_condition_handler_spec.rb +67 -0
  1506. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_handler_spec.rb +246 -0
  1507. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_variable_handler_spec.rb +11 -0
  1508. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/constant_handler_spec.rb +64 -0
  1509. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/dsl_handler_spec.rb +186 -0
  1510. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/alias_handler_001.rb.txt +44 -0
  1511. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/attribute_handler_001.rb.txt +32 -0
  1512. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_condition_handler_001.rb.txt +69 -0
  1513. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_handler_001.rb.txt +120 -0
  1514. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_variable_handler_001.rb.txt +10 -0
  1515. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/constant_handler_001.rb.txt +25 -0
  1516. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/dsl_handler_001.rb.txt +110 -0
  1517. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/exception_handler_001.rb.txt +59 -0
  1518. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/extend_handler_001.rb.txt +16 -0
  1519. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/method_condition_handler_001.rb.txt +10 -0
  1520. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/method_handler_001.rb.txt +126 -0
  1521. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/mixin_handler_001.rb.txt +37 -0
  1522. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/module_handler_001.rb.txt +29 -0
  1523. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/private_constant_handler_001.rb.txt +8 -0
  1524. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/process_handler_001.rb.txt +11 -0
  1525. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/visibility_handler_001.rb.txt +27 -0
  1526. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/yield_handler_001.rb.txt +54 -0
  1527. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/exception_handler_spec.rb +48 -0
  1528. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/extend_handler_spec.rb +23 -0
  1529. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/legacy_base_spec.rb +128 -0
  1530. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/method_condition_handler_spec.rb +14 -0
  1531. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/method_handler_spec.rb +184 -0
  1532. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/mixin_handler_spec.rb +55 -0
  1533. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/module_function_handler_spec.rb +82 -0
  1534. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/module_handler_spec.rb +34 -0
  1535. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/private_constant_handler_spec.rb +24 -0
  1536. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/processor_spec.rb +23 -0
  1537. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/ruby/base_spec.rb +94 -0
  1538. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/ruby/legacy/base_spec.rb +82 -0
  1539. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/spec_helper.rb +33 -0
  1540. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/visibility_handler_spec.rb +34 -0
  1541. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/yield_handler_spec.rb +51 -0
  1542. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/locale_spec.rb +62 -0
  1543. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/message_spec.rb +52 -0
  1544. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/messages_spec.rb +67 -0
  1545. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/pot_generator_spec.rb +262 -0
  1546. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/text_spec.rb +180 -0
  1547. data/vendor/bundle/gems/yard-0.8.2/spec/logging_spec.rb +35 -0
  1548. data/vendor/bundle/gems/yard-0.8.2/spec/options_spec.rb +160 -0
  1549. data/vendor/bundle/gems/yard-0.8.2/spec/parser/base_spec.rb +24 -0
  1550. data/vendor/bundle/gems/yard-0.8.2/spec/parser/c_parser_spec.rb +166 -0
  1551. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/array.c.txt +3887 -0
  1552. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/example1.rb.txt +8 -0
  1553. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/extrafile.c.txt +8 -0
  1554. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/multifile.c.txt +6 -0
  1555. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/override.c.txt +424 -0
  1556. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/parse_in_order_001.rb.txt +2 -0
  1557. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/parse_in_order_002.rb.txt +2 -0
  1558. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/tag_handler_001.rb.txt +8 -0
  1559. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/ast_node_spec.rb +33 -0
  1560. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/legacy/statement_list_spec.rb +299 -0
  1561. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/legacy/token_list_spec.rb +69 -0
  1562. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/ruby_parser_spec.rb +295 -0
  1563. data/vendor/bundle/gems/yard-0.8.2/spec/parser/source_parser_spec.rb +658 -0
  1564. data/vendor/bundle/gems/yard-0.8.2/spec/parser/tag_parsing_spec.rb +18 -0
  1565. data/vendor/bundle/gems/yard-0.8.2/spec/rake/yardoc_task_spec.rb +92 -0
  1566. data/vendor/bundle/gems/yard-0.8.2/spec/registry_spec.rb +359 -0
  1567. data/vendor/bundle/gems/yard-0.8.2/spec/registry_store_spec.rb +305 -0
  1568. data/vendor/bundle/gems/yard-0.8.2/spec/rubygems/doc_manager_spec.rb +112 -0
  1569. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/checksums +1 -0
  1570. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo/bar_i.dat +0 -0
  1571. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo/baz_i.dat +0 -0
  1572. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo.dat +0 -0
  1573. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/root.dat +0 -0
  1574. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/proxy_types +2 -0
  1575. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/file_system_serializer_spec.rb +124 -0
  1576. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/spec_helper.rb +2 -0
  1577. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/yardoc_serializer_spec.rb +46 -0
  1578. data/vendor/bundle/gems/yard-0.8.2/spec/server/adapter_spec.rb +38 -0
  1579. data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/base_spec.rb +87 -0
  1580. data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/library_command_spec.rb +39 -0
  1581. data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/static_file_command_spec.rb +84 -0
  1582. data/vendor/bundle/gems/yard-0.8.2/spec/server/doc_server_helper_spec.rb +51 -0
  1583. data/vendor/bundle/gems/yard-0.8.2/spec/server/doc_server_serializer_spec.rb +45 -0
  1584. data/vendor/bundle/gems/yard-0.8.2/spec/server/rack_adapter_spec.rb +20 -0
  1585. data/vendor/bundle/gems/yard-0.8.2/spec/server/router_spec.rb +122 -0
  1586. data/vendor/bundle/gems/yard-0.8.2/spec/server/spec_helper.rb +17 -0
  1587. data/vendor/bundle/gems/yard-0.8.2/spec/server/static_caching_spec.rb +39 -0
  1588. data/vendor/bundle/gems/yard-0.8.2/spec/server/webrick_servlet_spec.rb +20 -0
  1589. data/vendor/bundle/gems/yard-0.8.2/spec/server_spec.rb +10 -0
  1590. data/vendor/bundle/gems/yard-0.8.2/spec/spec_helper.rb +105 -0
  1591. data/vendor/bundle/gems/yard-0.8.2/spec/tags/default_factory_spec.rb +152 -0
  1592. data/vendor/bundle/gems/yard-0.8.2/spec/tags/default_tag_spec.rb +11 -0
  1593. data/vendor/bundle/gems/yard-0.8.2/spec/tags/directives_spec.rb +429 -0
  1594. data/vendor/bundle/gems/yard-0.8.2/spec/tags/library_spec.rb +34 -0
  1595. data/vendor/bundle/gems/yard-0.8.2/spec/tags/overload_tag_spec.rb +53 -0
  1596. data/vendor/bundle/gems/yard-0.8.2/spec/tags/ref_tag_list_spec.rb +53 -0
  1597. data/vendor/bundle/gems/yard-0.8.2/spec/templates/class_spec.rb +44 -0
  1598. data/vendor/bundle/gems/yard-0.8.2/spec/templates/constant_spec.rb +40 -0
  1599. data/vendor/bundle/gems/yard-0.8.2/spec/templates/engine_spec.rb +121 -0
  1600. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class001.html +280 -0
  1601. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class001.txt +36 -0
  1602. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class002.html +35 -0
  1603. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant001.txt +25 -0
  1604. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant002.txt +7 -0
  1605. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant003.txt +11 -0
  1606. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method001.html +130 -0
  1607. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method001.txt +35 -0
  1608. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method002.html +86 -0
  1609. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method002.txt +20 -0
  1610. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method003.html +159 -0
  1611. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method003.txt +45 -0
  1612. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method004.html +44 -0
  1613. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method004.txt +10 -0
  1614. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method005.html +99 -0
  1615. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method005.txt +33 -0
  1616. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.dot +33 -0
  1617. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.html +791 -0
  1618. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.txt +33 -0
  1619. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module002.html +318 -0
  1620. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module003.html +185 -0
  1621. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module004.html +387 -0
  1622. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/tag001.txt +82 -0
  1623. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/base_helper_spec.rb +175 -0
  1624. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/html_helper_spec.rb +586 -0
  1625. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +48 -0
  1626. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/markup/rdoc_markup_spec.rb +84 -0
  1627. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/markup_helper_spec.rb +135 -0
  1628. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/method_helper_spec.rb +75 -0
  1629. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/shared_signature_examples.rb +123 -0
  1630. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/text_helper_spec.rb +44 -0
  1631. data/vendor/bundle/gems/yard-0.8.2/spec/templates/method_spec.rb +102 -0
  1632. data/vendor/bundle/gems/yard-0.8.2/spec/templates/module_spec.rb +181 -0
  1633. data/vendor/bundle/gems/yard-0.8.2/spec/templates/onefile_spec.rb +64 -0
  1634. data/vendor/bundle/gems/yard-0.8.2/spec/templates/section_spec.rb +146 -0
  1635. data/vendor/bundle/gems/yard-0.8.2/spec/templates/spec_helper.rb +72 -0
  1636. data/vendor/bundle/gems/yard-0.8.2/spec/templates/tag_spec.rb +51 -0
  1637. data/vendor/bundle/gems/yard-0.8.2/spec/templates/template_spec.rb +409 -0
  1638. data/vendor/bundle/gems/yard-0.8.2/spec/verifier_spec.rb +106 -0
  1639. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/dot/setup.rb +6 -0
  1640. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/dot/superklass.erb +3 -0
  1641. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/constructor_details.erb +8 -0
  1642. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/setup.rb +1 -0
  1643. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/subclasses.erb +4 -0
  1644. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/setup.rb +36 -0
  1645. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/text/setup.rb +11 -0
  1646. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/text/subclasses.erb +5 -0
  1647. data/vendor/bundle/gems/yard-0.8.2/templates/default/constant/text/header.erb +11 -0
  1648. data/vendor/bundle/gems/yard-0.8.2/templates/default/constant/text/setup.rb +3 -0
  1649. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/abstract.erb +4 -0
  1650. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/deprecated.erb +1 -0
  1651. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/index.erb +5 -0
  1652. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/note.erb +6 -0
  1653. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/private.erb +4 -0
  1654. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/returns_void.erb +1 -0
  1655. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/text.erb +1 -0
  1656. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/todo.erb +6 -0
  1657. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/setup.rb +49 -0
  1658. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/abstract.erb +2 -0
  1659. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/deprecated.erb +2 -0
  1660. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/index.erb +2 -0
  1661. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/note.erb +4 -0
  1662. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/private.erb +2 -0
  1663. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/returns_void.erb +1 -0
  1664. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/text.erb +1 -0
  1665. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/todo.erb +4 -0
  1666. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/common.css +1 -0
  1667. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/full_list.css +57 -0
  1668. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/style.css +328 -0
  1669. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/frames.erb +28 -0
  1670. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list.erb +39 -0
  1671. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_class.erb +2 -0
  1672. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_file.erb +5 -0
  1673. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_method.erb +12 -0
  1674. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/app.js +214 -0
  1675. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/full_list.js +173 -0
  1676. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/jquery.js +4 -0
  1677. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/setup.rb +206 -0
  1678. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/dot/header.erb +6 -0
  1679. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/dot/setup.rb +14 -0
  1680. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/breadcrumb.erb +13 -0
  1681. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/files.erb +11 -0
  1682. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/footer.erb +5 -0
  1683. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/headers.erb +14 -0
  1684. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/index.erb +2 -0
  1685. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/layout.erb +20 -0
  1686. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/listing.erb +4 -0
  1687. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/objects.erb +32 -0
  1688. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/script_setup.erb +5 -0
  1689. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/search.erb +8 -0
  1690. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/setup.rb +71 -0
  1691. data/vendor/bundle/gems/yard-0.8.2/templates/default/method/html/header.erb +16 -0
  1692. data/vendor/bundle/gems/yard-0.8.2/templates/default/method/setup.rb +3 -0
  1693. data/vendor/bundle/gems/yard-0.8.2/templates/default/method/text/header.erb +1 -0
  1694. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/header.erb +3 -0
  1695. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/method_signature.erb +25 -0
  1696. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/source.erb +10 -0
  1697. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/setup.rb +10 -0
  1698. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/header.erb +10 -0
  1699. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/method_signature.erb +12 -0
  1700. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/setup.rb +10 -0
  1701. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/child.erb +1 -0
  1702. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/dependencies.erb +3 -0
  1703. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/header.erb +6 -0
  1704. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/info.erb +14 -0
  1705. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/setup.rb +14 -0
  1706. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/attribute_details.erb +10 -0
  1707. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/attribute_summary.erb +8 -0
  1708. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/box_info.erb +37 -0
  1709. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/children.erb +8 -0
  1710. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/constant_summary.erb +13 -0
  1711. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/defines.erb +3 -0
  1712. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/header.erb +5 -0
  1713. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_attributes.erb +14 -0
  1714. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_constants.erb +8 -0
  1715. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_methods.erb +19 -0
  1716. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/item_summary.erb +40 -0
  1717. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/method_details_list.erb +9 -0
  1718. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/method_summary.erb +14 -0
  1719. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/methodmissing.erb +12 -0
  1720. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/pre_docstring.erb +1 -0
  1721. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/setup.rb +164 -0
  1722. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/children.erb +10 -0
  1723. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/class_meths_list.erb +8 -0
  1724. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/extends.erb +8 -0
  1725. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/header.erb +7 -0
  1726. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/includes.erb +8 -0
  1727. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/instance_meths_list.erb +8 -0
  1728. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/setup.rb +12 -0
  1729. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/files.erb +5 -0
  1730. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/layout.erb +22 -0
  1731. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/readme.erb +3 -0
  1732. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/setup.rb +43 -0
  1733. data/vendor/bundle/gems/yard-0.8.2/templates/default/root/dot/child.erb +3 -0
  1734. data/vendor/bundle/gems/yard-0.8.2/templates/default/root/dot/setup.rb +5 -0
  1735. data/vendor/bundle/gems/yard-0.8.2/templates/default/root/html/setup.rb +1 -0
  1736. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/example.erb +11 -0
  1737. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/index.erb +3 -0
  1738. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/option.erb +24 -0
  1739. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/overload.erb +14 -0
  1740. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/see.erb +8 -0
  1741. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/tag.erb +20 -0
  1742. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/setup.rb +55 -0
  1743. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/example.erb +12 -0
  1744. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/index.erb +1 -0
  1745. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/option.erb +20 -0
  1746. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/overload.erb +19 -0
  1747. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/see.erb +11 -0
  1748. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/tag.erb +13 -0
  1749. data/vendor/bundle/gems/yard-0.8.2/templates/guide/class/html/setup.rb +1 -0
  1750. data/vendor/bundle/gems/yard-0.8.2/templates/guide/docstring/html/setup.rb +1 -0
  1751. data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/css/style.css +93 -0
  1752. data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/js/app.js +33 -0
  1753. data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/setup.rb +54 -0
  1754. data/vendor/bundle/gems/yard-0.8.2/templates/guide/layout/html/layout.erb +81 -0
  1755. data/vendor/bundle/gems/yard-0.8.2/templates/guide/layout/html/setup.rb +24 -0
  1756. data/vendor/bundle/gems/yard-0.8.2/templates/guide/method/html/header.erb +18 -0
  1757. data/vendor/bundle/gems/yard-0.8.2/templates/guide/method/html/setup.rb +21 -0
  1758. data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/header.erb +7 -0
  1759. data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/method_list.erb +5 -0
  1760. data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/setup.rb +26 -0
  1761. data/vendor/bundle/gems/yard-0.8.2/templates/guide/tags/html/setup.rb +8 -0
  1762. data/vendor/bundle/specifications/actionmailer-3.2.5.gemspec +33 -0
  1763. data/vendor/bundle/specifications/actionpack-3.2.5.gemspec +57 -0
  1764. data/vendor/bundle/specifications/activemodel-3.2.5.gemspec +32 -0
  1765. data/vendor/bundle/specifications/activerecord-3.2.5.gemspec +41 -0
  1766. data/vendor/bundle/specifications/activeresource-3.2.5.gemspec +35 -0
  1767. data/vendor/bundle/specifications/activesupport-3.2.5.gemspec +33 -0
  1768. data/vendor/bundle/specifications/multi_json-1.3.6.gemspec +40 -0
  1769. data/vendor/bundle/specifications/rails-3.2.5.gemspec +47 -0
  1770. data/vendor/bundle/specifications/railties-3.2.5.gemspec +47 -0
  1771. data/vendor/bundle/specifications/thor-0.15.2.gemspec +50 -0
  1772. data/vendor/bundle/specifications/yard-0.8.2.gemspec +28 -0
  1773. metadata +1779 -10
@@ -0,0 +1,1604 @@
1
+ require 'active_support/core_ext/array/wrap'
2
+ require 'active_support/core_ext/enumerable'
3
+ require 'active_support/core_ext/module/delegation'
4
+ require 'active_support/core_ext/object/blank'
5
+ require 'active_support/core_ext/string/conversions'
6
+ require 'active_support/core_ext/module/remove_method'
7
+ require 'active_support/core_ext/class/attribute'
8
+
9
+ module ActiveRecord
10
+ class InverseOfAssociationNotFoundError < ActiveRecordError #:nodoc:
11
+ def initialize(reflection, associated_class = nil)
12
+ super("Could not find the inverse association for #{reflection.name} (#{reflection.options[:inverse_of].inspect} in #{associated_class.nil? ? reflection.class_name : associated_class.name})")
13
+ end
14
+ end
15
+
16
+ class HasManyThroughAssociationNotFoundError < ActiveRecordError #:nodoc:
17
+ def initialize(owner_class_name, reflection)
18
+ super("Could not find the association #{reflection.options[:through].inspect} in model #{owner_class_name}")
19
+ end
20
+ end
21
+
22
+ class HasManyThroughAssociationPolymorphicSourceError < ActiveRecordError #:nodoc:
23
+ def initialize(owner_class_name, reflection, source_reflection)
24
+ super("Cannot have a has_many :through association '#{owner_class_name}##{reflection.name}' on the polymorphic object '#{source_reflection.class_name}##{source_reflection.name}'.")
25
+ end
26
+ end
27
+
28
+ class HasManyThroughAssociationPolymorphicThroughError < ActiveRecordError #:nodoc:
29
+ def initialize(owner_class_name, reflection)
30
+ super("Cannot have a has_many :through association '#{owner_class_name}##{reflection.name}' which goes through the polymorphic association '#{owner_class_name}##{reflection.through_reflection.name}'.")
31
+ end
32
+ end
33
+
34
+ class HasManyThroughAssociationPointlessSourceTypeError < ActiveRecordError #:nodoc:
35
+ def initialize(owner_class_name, reflection, source_reflection)
36
+ super("Cannot have a has_many :through association '#{owner_class_name}##{reflection.name}' with a :source_type option if the '#{reflection.through_reflection.class_name}##{source_reflection.name}' is not polymorphic. Try removing :source_type on your association.")
37
+ end
38
+ end
39
+
40
+ class HasOneThroughCantAssociateThroughCollection < ActiveRecordError #:nodoc:
41
+ def initialize(owner_class_name, reflection, through_reflection)
42
+ super("Cannot have a has_one :through association '#{owner_class_name}##{reflection.name}' where the :through association '#{owner_class_name}##{through_reflection.name}' is a collection. Specify a has_one or belongs_to association in the :through option instead.")
43
+ end
44
+ end
45
+
46
+ class HasManyThroughSourceAssociationNotFoundError < ActiveRecordError #:nodoc:
47
+ def initialize(reflection)
48
+ through_reflection = reflection.through_reflection
49
+ source_reflection_names = reflection.source_reflection_names
50
+ source_associations = reflection.through_reflection.klass.reflect_on_all_associations.collect { |a| a.name.inspect }
51
+ super("Could not find the source association(s) #{source_reflection_names.collect{ |a| a.inspect }.to_sentence(:two_words_connector => ' or ', :last_word_connector => ', or ', :locale => :en)} in model #{through_reflection.klass}. Try 'has_many #{reflection.name.inspect}, :through => #{through_reflection.name.inspect}, :source => <name>'. Is it one of #{source_associations.to_sentence(:two_words_connector => ' or ', :last_word_connector => ', or ', :locale => :en)}?")
52
+ end
53
+ end
54
+
55
+ class HasManyThroughCantAssociateThroughHasOneOrManyReflection < ActiveRecordError #:nodoc:
56
+ def initialize(owner, reflection)
57
+ super("Cannot modify association '#{owner.class.name}##{reflection.name}' because the source reflection class '#{reflection.source_reflection.class_name}' is associated to '#{reflection.through_reflection.class_name}' via :#{reflection.source_reflection.macro}.")
58
+ end
59
+ end
60
+
61
+ class HasManyThroughCantAssociateNewRecords < ActiveRecordError #:nodoc:
62
+ def initialize(owner, reflection)
63
+ super("Cannot associate new records through '#{owner.class.name}##{reflection.name}' on '#{reflection.source_reflection.class_name rescue nil}##{reflection.source_reflection.name rescue nil}'. Both records must have an id in order to create the has_many :through record associating them.")
64
+ end
65
+ end
66
+
67
+ class HasManyThroughCantDissociateNewRecords < ActiveRecordError #:nodoc:
68
+ def initialize(owner, reflection)
69
+ super("Cannot dissociate new records through '#{owner.class.name}##{reflection.name}' on '#{reflection.source_reflection.class_name rescue nil}##{reflection.source_reflection.name rescue nil}'. Both records must have an id in order to delete the has_many :through record associating them.")
70
+ end
71
+ end
72
+
73
+ class HasManyThroughNestedAssociationsAreReadonly < ActiveRecordError #:nodoc:
74
+ def initialize(owner, reflection)
75
+ super("Cannot modify association '#{owner.class.name}##{reflection.name}' because it goes through more than one other association.")
76
+ end
77
+ end
78
+
79
+ class HasAndBelongsToManyAssociationForeignKeyNeeded < ActiveRecordError #:nodoc:
80
+ def initialize(reflection)
81
+ super("Cannot create self referential has_and_belongs_to_many association on '#{reflection.class_name rescue nil}##{reflection.name rescue nil}'. :association_foreign_key cannot be the same as the :foreign_key.")
82
+ end
83
+ end
84
+
85
+ class EagerLoadPolymorphicError < ActiveRecordError #:nodoc:
86
+ def initialize(reflection)
87
+ super("Can not eagerly load the polymorphic association #{reflection.name.inspect}")
88
+ end
89
+ end
90
+
91
+ class ReadOnlyAssociation < ActiveRecordError #:nodoc:
92
+ def initialize(reflection)
93
+ super("Can not add to a has_many :through association. Try adding to #{reflection.through_reflection.name.inspect}.")
94
+ end
95
+ end
96
+
97
+ # This error is raised when trying to destroy a parent instance in N:1 or 1:1 associations
98
+ # (has_many, has_one) when there is at least 1 child associated instance.
99
+ # ex: if @project.tasks.size > 0, DeleteRestrictionError will be raised when trying to destroy @project
100
+ class DeleteRestrictionError < ActiveRecordError #:nodoc:
101
+ def initialize(name)
102
+ super("Cannot delete record because of dependent #{name}")
103
+ end
104
+ end
105
+
106
+ # See ActiveRecord::Associations::ClassMethods for documentation.
107
+ module Associations # :nodoc:
108
+ extend ActiveSupport::Concern
109
+
110
+ # These classes will be loaded when associations are created.
111
+ # So there is no need to eager load them.
112
+ autoload :Association, 'active_record/associations/association'
113
+ autoload :SingularAssociation, 'active_record/associations/singular_association'
114
+ autoload :CollectionAssociation, 'active_record/associations/collection_association'
115
+ autoload :CollectionProxy, 'active_record/associations/collection_proxy'
116
+
117
+ autoload :BelongsToAssociation, 'active_record/associations/belongs_to_association'
118
+ autoload :BelongsToPolymorphicAssociation, 'active_record/associations/belongs_to_polymorphic_association'
119
+ autoload :HasAndBelongsToManyAssociation, 'active_record/associations/has_and_belongs_to_many_association'
120
+ autoload :HasManyAssociation, 'active_record/associations/has_many_association'
121
+ autoload :HasManyThroughAssociation, 'active_record/associations/has_many_through_association'
122
+ autoload :HasOneAssociation, 'active_record/associations/has_one_association'
123
+ autoload :HasOneThroughAssociation, 'active_record/associations/has_one_through_association'
124
+ autoload :ThroughAssociation, 'active_record/associations/through_association'
125
+
126
+ module Builder #:nodoc:
127
+ autoload :Association, 'active_record/associations/builder/association'
128
+ autoload :SingularAssociation, 'active_record/associations/builder/singular_association'
129
+ autoload :CollectionAssociation, 'active_record/associations/builder/collection_association'
130
+
131
+ autoload :BelongsTo, 'active_record/associations/builder/belongs_to'
132
+ autoload :HasOne, 'active_record/associations/builder/has_one'
133
+ autoload :HasMany, 'active_record/associations/builder/has_many'
134
+ autoload :HasAndBelongsToMany, 'active_record/associations/builder/has_and_belongs_to_many'
135
+ end
136
+
137
+ autoload :Preloader, 'active_record/associations/preloader'
138
+ autoload :JoinDependency, 'active_record/associations/join_dependency'
139
+ autoload :AssociationScope, 'active_record/associations/association_scope'
140
+ autoload :AliasTracker, 'active_record/associations/alias_tracker'
141
+ autoload :JoinHelper, 'active_record/associations/join_helper'
142
+
143
+ # Clears out the association cache.
144
+ def clear_association_cache #:nodoc:
145
+ @association_cache.clear if persisted?
146
+ end
147
+
148
+ # :nodoc:
149
+ attr_reader :association_cache
150
+
151
+ # Returns the association instance for the given name, instantiating it if it doesn't already exist
152
+ def association(name) #:nodoc:
153
+ association = association_instance_get(name)
154
+
155
+ if association.nil?
156
+ reflection = self.class.reflect_on_association(name)
157
+ association = reflection.association_class.new(self, reflection)
158
+ association_instance_set(name, association)
159
+ end
160
+
161
+ association
162
+ end
163
+
164
+ private
165
+ # Returns the specified association instance if it responds to :loaded?, nil otherwise.
166
+ def association_instance_get(name)
167
+ @association_cache[name.to_sym]
168
+ end
169
+
170
+ # Set the specified association instance.
171
+ def association_instance_set(name, association)
172
+ @association_cache[name] = association
173
+ end
174
+
175
+ # Associations are a set of macro-like class methods for tying objects together through
176
+ # foreign keys. They express relationships like "Project has one Project Manager"
177
+ # or "Project belongs to a Portfolio". Each macro adds a number of methods to the
178
+ # class which are specialized according to the collection or association symbol and the
179
+ # options hash. It works much the same way as Ruby's own <tt>attr*</tt>
180
+ # methods.
181
+ #
182
+ # class Project < ActiveRecord::Base
183
+ # belongs_to :portfolio
184
+ # has_one :project_manager
185
+ # has_many :milestones
186
+ # has_and_belongs_to_many :categories
187
+ # end
188
+ #
189
+ # The project class now has the following methods (and more) to ease the traversal and
190
+ # manipulation of its relationships:
191
+ # * <tt>Project#portfolio, Project#portfolio=(portfolio), Project#portfolio.nil?</tt>
192
+ # * <tt>Project#project_manager, Project#project_manager=(project_manager), Project#project_manager.nil?,</tt>
193
+ # * <tt>Project#milestones.empty?, Project#milestones.size, Project#milestones, Project#milestones<<(milestone),</tt>
194
+ # <tt>Project#milestones.delete(milestone), Project#milestones.find(milestone_id), Project#milestones.all(options),</tt>
195
+ # <tt>Project#milestones.build, Project#milestones.create</tt>
196
+ # * <tt>Project#categories.empty?, Project#categories.size, Project#categories, Project#categories<<(category1),</tt>
197
+ # <tt>Project#categories.delete(category1)</tt>
198
+ #
199
+ # === Overriding generated methods
200
+ #
201
+ # Association methods are generated in a module that is included into the model class,
202
+ # which allows you to easily override with your own methods and call the original
203
+ # generated method with +super+. For example:
204
+ #
205
+ # class Car < ActiveRecord::Base
206
+ # belongs_to :owner
207
+ # belongs_to :old_owner
208
+ # def owner=(new_owner)
209
+ # self.old_owner = self.owner
210
+ # super
211
+ # end
212
+ # end
213
+ #
214
+ # If your model class is <tt>Project</tt>, the module is
215
+ # named <tt>Project::GeneratedFeatureMethods</tt>. The GeneratedFeatureMethods module is
216
+ # included in the model class immediately after the (anonymous) generated attributes methods
217
+ # module, meaning an association will override the methods for an attribute with the same name.
218
+ #
219
+ # === A word of warning
220
+ #
221
+ # Don't create associations that have the same name as instance methods of
222
+ # <tt>ActiveRecord::Base</tt>. Since the association adds a method with that name to
223
+ # its model, it will override the inherited method and break things.
224
+ # For instance, +attributes+ and +connection+ would be bad choices for association names.
225
+ #
226
+ # == Auto-generated methods
227
+ #
228
+ # === Singular associations (one-to-one)
229
+ # | | belongs_to |
230
+ # generated methods | belongs_to | :polymorphic | has_one
231
+ # ----------------------------------+------------+--------------+---------
232
+ # other | X | X | X
233
+ # other=(other) | X | X | X
234
+ # build_other(attributes={}) | X | | X
235
+ # create_other(attributes={}) | X | | X
236
+ # create_other!(attributes={}) | X | | X
237
+ #
238
+ # ===Collection associations (one-to-many / many-to-many)
239
+ # | | | has_many
240
+ # generated methods | habtm | has_many | :through
241
+ # ----------------------------------+-------+----------+----------
242
+ # others | X | X | X
243
+ # others=(other,other,...) | X | X | X
244
+ # other_ids | X | X | X
245
+ # other_ids=(id,id,...) | X | X | X
246
+ # others<< | X | X | X
247
+ # others.push | X | X | X
248
+ # others.concat | X | X | X
249
+ # others.build(attributes={}) | X | X | X
250
+ # others.create(attributes={}) | X | X | X
251
+ # others.create!(attributes={}) | X | X | X
252
+ # others.size | X | X | X
253
+ # others.length | X | X | X
254
+ # others.count | X | X | X
255
+ # others.sum(args*,&block) | X | X | X
256
+ # others.empty? | X | X | X
257
+ # others.clear | X | X | X
258
+ # others.delete(other,other,...) | X | X | X
259
+ # others.delete_all | X | X | X
260
+ # others.destroy_all | X | X | X
261
+ # others.find(*args) | X | X | X
262
+ # others.exists? | X | X | X
263
+ # others.uniq | X | X | X
264
+ # others.reset | X | X | X
265
+ #
266
+ # == Cardinality and associations
267
+ #
268
+ # Active Record associations can be used to describe one-to-one, one-to-many and many-to-many
269
+ # relationships between models. Each model uses an association to describe its role in
270
+ # the relation. The +belongs_to+ association is always used in the model that has
271
+ # the foreign key.
272
+ #
273
+ # === One-to-one
274
+ #
275
+ # Use +has_one+ in the base, and +belongs_to+ in the associated model.
276
+ #
277
+ # class Employee < ActiveRecord::Base
278
+ # has_one :office
279
+ # end
280
+ # class Office < ActiveRecord::Base
281
+ # belongs_to :employee # foreign key - employee_id
282
+ # end
283
+ #
284
+ # === One-to-many
285
+ #
286
+ # Use +has_many+ in the base, and +belongs_to+ in the associated model.
287
+ #
288
+ # class Manager < ActiveRecord::Base
289
+ # has_many :employees
290
+ # end
291
+ # class Employee < ActiveRecord::Base
292
+ # belongs_to :manager # foreign key - manager_id
293
+ # end
294
+ #
295
+ # === Many-to-many
296
+ #
297
+ # There are two ways to build a many-to-many relationship.
298
+ #
299
+ # The first way uses a +has_many+ association with the <tt>:through</tt> option and a join model, so
300
+ # there are two stages of associations.
301
+ #
302
+ # class Assignment < ActiveRecord::Base
303
+ # belongs_to :programmer # foreign key - programmer_id
304
+ # belongs_to :project # foreign key - project_id
305
+ # end
306
+ # class Programmer < ActiveRecord::Base
307
+ # has_many :assignments
308
+ # has_many :projects, :through => :assignments
309
+ # end
310
+ # class Project < ActiveRecord::Base
311
+ # has_many :assignments
312
+ # has_many :programmers, :through => :assignments
313
+ # end
314
+ #
315
+ # For the second way, use +has_and_belongs_to_many+ in both models. This requires a join table
316
+ # that has no corresponding model or primary key.
317
+ #
318
+ # class Programmer < ActiveRecord::Base
319
+ # has_and_belongs_to_many :projects # foreign keys in the join table
320
+ # end
321
+ # class Project < ActiveRecord::Base
322
+ # has_and_belongs_to_many :programmers # foreign keys in the join table
323
+ # end
324
+ #
325
+ # Choosing which way to build a many-to-many relationship is not always simple.
326
+ # If you need to work with the relationship model as its own entity,
327
+ # use <tt>has_many :through</tt>. Use +has_and_belongs_to_many+ when working with legacy schemas or when
328
+ # you never work directly with the relationship itself.
329
+ #
330
+ # == Is it a +belongs_to+ or +has_one+ association?
331
+ #
332
+ # Both express a 1-1 relationship. The difference is mostly where to place the foreign
333
+ # key, which goes on the table for the class declaring the +belongs_to+ relationship.
334
+ #
335
+ # class User < ActiveRecord::Base
336
+ # # I reference an account.
337
+ # belongs_to :account
338
+ # end
339
+ #
340
+ # class Account < ActiveRecord::Base
341
+ # # One user references me.
342
+ # has_one :user
343
+ # end
344
+ #
345
+ # The tables for these classes could look something like:
346
+ #
347
+ # CREATE TABLE users (
348
+ # id int(11) NOT NULL auto_increment,
349
+ # account_id int(11) default NULL,
350
+ # name varchar default NULL,
351
+ # PRIMARY KEY (id)
352
+ # )
353
+ #
354
+ # CREATE TABLE accounts (
355
+ # id int(11) NOT NULL auto_increment,
356
+ # name varchar default NULL,
357
+ # PRIMARY KEY (id)
358
+ # )
359
+ #
360
+ # == Unsaved objects and associations
361
+ #
362
+ # You can manipulate objects and associations before they are saved to the database, but
363
+ # there is some special behavior you should be aware of, mostly involving the saving of
364
+ # associated objects.
365
+ #
366
+ # You can set the :autosave option on a <tt>has_one</tt>, <tt>belongs_to</tt>,
367
+ # <tt>has_many</tt>, or <tt>has_and_belongs_to_many</tt> association. Setting it
368
+ # to +true+ will _always_ save the members, whereas setting it to +false+ will
369
+ # _never_ save the members. More details about :autosave option is available at
370
+ # autosave_association.rb .
371
+ #
372
+ # === One-to-one associations
373
+ #
374
+ # * Assigning an object to a +has_one+ association automatically saves that object and
375
+ # the object being replaced (if there is one), in order to update their foreign
376
+ # keys - except if the parent object is unsaved (<tt>new_record? == true</tt>).
377
+ # * If either of these saves fail (due to one of the objects being invalid), an
378
+ # <tt>ActiveRecord::RecordNotSaved</tt> exception is raised and the assignment is
379
+ # cancelled.
380
+ # * If you wish to assign an object to a +has_one+ association without saving it,
381
+ # use the <tt>build_association</tt> method (documented below). The object being
382
+ # replaced will still be saved to update its foreign key.
383
+ # * Assigning an object to a +belongs_to+ association does not save the object, since
384
+ # the foreign key field belongs on the parent. It does not save the parent either.
385
+ #
386
+ # === Collections
387
+ #
388
+ # * Adding an object to a collection (+has_many+ or +has_and_belongs_to_many+) automatically
389
+ # saves that object, except if the parent object (the owner of the collection) is not yet
390
+ # stored in the database.
391
+ # * If saving any of the objects being added to a collection (via <tt>push</tt> or similar)
392
+ # fails, then <tt>push</tt> returns +false+.
393
+ # * If saving fails while replacing the collection (via <tt>association=</tt>), an
394
+ # <tt>ActiveRecord::RecordNotSaved</tt> exception is raised and the assignment is
395
+ # cancelled.
396
+ # * You can add an object to a collection without automatically saving it by using the
397
+ # <tt>collection.build</tt> method (documented below).
398
+ # * All unsaved (<tt>new_record? == true</tt>) members of the collection are automatically
399
+ # saved when the parent is saved.
400
+ #
401
+ # === Association callbacks
402
+ #
403
+ # Similar to the normal callbacks that hook into the life cycle of an Active Record object,
404
+ # you can also define callbacks that get triggered when you add an object to or remove an
405
+ # object from an association collection.
406
+ #
407
+ # class Project
408
+ # has_and_belongs_to_many :developers, :after_add => :evaluate_velocity
409
+ #
410
+ # def evaluate_velocity(developer)
411
+ # ...
412
+ # end
413
+ # end
414
+ #
415
+ # It's possible to stack callbacks by passing them as an array. Example:
416
+ #
417
+ # class Project
418
+ # has_and_belongs_to_many :developers,
419
+ # :after_add => [:evaluate_velocity, Proc.new { |p, d| p.shipping_date = Time.now}]
420
+ # end
421
+ #
422
+ # Possible callbacks are: +before_add+, +after_add+, +before_remove+ and +after_remove+.
423
+ #
424
+ # Should any of the +before_add+ callbacks throw an exception, the object does not get
425
+ # added to the collection. Same with the +before_remove+ callbacks; if an exception is
426
+ # thrown the object doesn't get removed.
427
+ #
428
+ # === Association extensions
429
+ #
430
+ # The proxy objects that control the access to associations can be extended through anonymous
431
+ # modules. This is especially beneficial for adding new finders, creators, and other
432
+ # factory-type methods that are only used as part of this association.
433
+ #
434
+ # class Account < ActiveRecord::Base
435
+ # has_many :people do
436
+ # def find_or_create_by_name(name)
437
+ # first_name, last_name = name.split(" ", 2)
438
+ # find_or_create_by_first_name_and_last_name(first_name, last_name)
439
+ # end
440
+ # end
441
+ # end
442
+ #
443
+ # person = Account.first.people.find_or_create_by_name("David Heinemeier Hansson")
444
+ # person.first_name # => "David"
445
+ # person.last_name # => "Heinemeier Hansson"
446
+ #
447
+ # If you need to share the same extensions between many associations, you can use a named
448
+ # extension module.
449
+ #
450
+ # module FindOrCreateByNameExtension
451
+ # def find_or_create_by_name(name)
452
+ # first_name, last_name = name.split(" ", 2)
453
+ # find_or_create_by_first_name_and_last_name(first_name, last_name)
454
+ # end
455
+ # end
456
+ #
457
+ # class Account < ActiveRecord::Base
458
+ # has_many :people, :extend => FindOrCreateByNameExtension
459
+ # end
460
+ #
461
+ # class Company < ActiveRecord::Base
462
+ # has_many :people, :extend => FindOrCreateByNameExtension
463
+ # end
464
+ #
465
+ # If you need to use multiple named extension modules, you can specify an array of modules
466
+ # with the <tt>:extend</tt> option.
467
+ # In the case of name conflicts between methods in the modules, methods in modules later
468
+ # in the array supercede those earlier in the array.
469
+ #
470
+ # class Account < ActiveRecord::Base
471
+ # has_many :people, :extend => [FindOrCreateByNameExtension, FindRecentExtension]
472
+ # end
473
+ #
474
+ # Some extensions can only be made to work with knowledge of the association's internals.
475
+ # Extensions can access relevant state using the following methods (where +items+ is the
476
+ # name of the association):
477
+ #
478
+ # * <tt>record.association(:items).owner</tt> - Returns the object the association is part of.
479
+ # * <tt>record.association(:items).reflection</tt> - Returns the reflection object that describes the association.
480
+ # * <tt>record.association(:items).target</tt> - Returns the associated object for +belongs_to+ and +has_one+, or
481
+ # the collection of associated objects for +has_many+ and +has_and_belongs_to_many+.
482
+ #
483
+ # However, inside the actual extension code, you will not have access to the <tt>record</tt> as
484
+ # above. In this case, you can access <tt>proxy_association</tt>. For example,
485
+ # <tt>record.association(:items)</tt> and <tt>record.items.proxy_association</tt> will return
486
+ # the same object, allowing you to make calls like <tt>proxy_association.owner</tt> inside
487
+ # association extensions.
488
+ #
489
+ # === Association Join Models
490
+ #
491
+ # Has Many associations can be configured with the <tt>:through</tt> option to use an
492
+ # explicit join model to retrieve the data. This operates similarly to a
493
+ # +has_and_belongs_to_many+ association. The advantage is that you're able to add validations,
494
+ # callbacks, and extra attributes on the join model. Consider the following schema:
495
+ #
496
+ # class Author < ActiveRecord::Base
497
+ # has_many :authorships
498
+ # has_many :books, :through => :authorships
499
+ # end
500
+ #
501
+ # class Authorship < ActiveRecord::Base
502
+ # belongs_to :author
503
+ # belongs_to :book
504
+ # end
505
+ #
506
+ # @author = Author.first
507
+ # @author.authorships.collect { |a| a.book } # selects all books that the author's authorships belong to
508
+ # @author.books # selects all books by using the Authorship join model
509
+ #
510
+ # You can also go through a +has_many+ association on the join model:
511
+ #
512
+ # class Firm < ActiveRecord::Base
513
+ # has_many :clients
514
+ # has_many :invoices, :through => :clients
515
+ # end
516
+ #
517
+ # class Client < ActiveRecord::Base
518
+ # belongs_to :firm
519
+ # has_many :invoices
520
+ # end
521
+ #
522
+ # class Invoice < ActiveRecord::Base
523
+ # belongs_to :client
524
+ # end
525
+ #
526
+ # @firm = Firm.first
527
+ # @firm.clients.collect { |c| c.invoices }.flatten # select all invoices for all clients of the firm
528
+ # @firm.invoices # selects all invoices by going through the Client join model
529
+ #
530
+ # Similarly you can go through a +has_one+ association on the join model:
531
+ #
532
+ # class Group < ActiveRecord::Base
533
+ # has_many :users
534
+ # has_many :avatars, :through => :users
535
+ # end
536
+ #
537
+ # class User < ActiveRecord::Base
538
+ # belongs_to :group
539
+ # has_one :avatar
540
+ # end
541
+ #
542
+ # class Avatar < ActiveRecord::Base
543
+ # belongs_to :user
544
+ # end
545
+ #
546
+ # @group = Group.first
547
+ # @group.users.collect { |u| u.avatar }.flatten # select all avatars for all users in the group
548
+ # @group.avatars # selects all avatars by going through the User join model.
549
+ #
550
+ # An important caveat with going through +has_one+ or +has_many+ associations on the
551
+ # join model is that these associations are *read-only*. For example, the following
552
+ # would not work following the previous example:
553
+ #
554
+ # @group.avatars << Avatar.new # this would work if User belonged_to Avatar rather than the other way around
555
+ # @group.avatars.delete(@group.avatars.last) # so would this
556
+ #
557
+ # If you are using a +belongs_to+ on the join model, it is a good idea to set the
558
+ # <tt>:inverse_of</tt> option on the +belongs_to+, which will mean that the following example
559
+ # works correctly (where <tt>tags</tt> is a +has_many+ <tt>:through</tt> association):
560
+ #
561
+ # @post = Post.first
562
+ # @tag = @post.tags.build :name => "ruby"
563
+ # @tag.save
564
+ #
565
+ # The last line ought to save the through record (a <tt>Taggable</tt>). This will only work if the
566
+ # <tt>:inverse_of</tt> is set:
567
+ #
568
+ # class Taggable < ActiveRecord::Base
569
+ # belongs_to :post
570
+ # belongs_to :tag, :inverse_of => :taggings
571
+ # end
572
+ #
573
+ # === Nested Associations
574
+ #
575
+ # You can actually specify *any* association with the <tt>:through</tt> option, including an
576
+ # association which has a <tt>:through</tt> option itself. For example:
577
+ #
578
+ # class Author < ActiveRecord::Base
579
+ # has_many :posts
580
+ # has_many :comments, :through => :posts
581
+ # has_many :commenters, :through => :comments
582
+ # end
583
+ #
584
+ # class Post < ActiveRecord::Base
585
+ # has_many :comments
586
+ # end
587
+ #
588
+ # class Comment < ActiveRecord::Base
589
+ # belongs_to :commenter
590
+ # end
591
+ #
592
+ # @author = Author.first
593
+ # @author.commenters # => People who commented on posts written by the author
594
+ #
595
+ # An equivalent way of setting up this association this would be:
596
+ #
597
+ # class Author < ActiveRecord::Base
598
+ # has_many :posts
599
+ # has_many :commenters, :through => :posts
600
+ # end
601
+ #
602
+ # class Post < ActiveRecord::Base
603
+ # has_many :comments
604
+ # has_many :commenters, :through => :comments
605
+ # end
606
+ #
607
+ # class Comment < ActiveRecord::Base
608
+ # belongs_to :commenter
609
+ # end
610
+ #
611
+ # When using nested association, you will not be able to modify the association because there
612
+ # is not enough information to know what modification to make. For example, if you tried to
613
+ # add a <tt>Commenter</tt> in the example above, there would be no way to tell how to set up the
614
+ # intermediate <tt>Post</tt> and <tt>Comment</tt> objects.
615
+ #
616
+ # === Polymorphic Associations
617
+ #
618
+ # Polymorphic associations on models are not restricted on what types of models they
619
+ # can be associated with. Rather, they specify an interface that a +has_many+ association
620
+ # must adhere to.
621
+ #
622
+ # class Asset < ActiveRecord::Base
623
+ # belongs_to :attachable, :polymorphic => true
624
+ # end
625
+ #
626
+ # class Post < ActiveRecord::Base
627
+ # has_many :assets, :as => :attachable # The :as option specifies the polymorphic interface to use.
628
+ # end
629
+ #
630
+ # @asset.attachable = @post
631
+ #
632
+ # This works by using a type column in addition to a foreign key to specify the associated
633
+ # record. In the Asset example, you'd need an +attachable_id+ integer column and an
634
+ # +attachable_type+ string column.
635
+ #
636
+ # Using polymorphic associations in combination with single table inheritance (STI) is
637
+ # a little tricky. In order for the associations to work as expected, ensure that you
638
+ # store the base model for the STI models in the type column of the polymorphic
639
+ # association. To continue with the asset example above, suppose there are guest posts
640
+ # and member posts that use the posts table for STI. In this case, there must be a +type+
641
+ # column in the posts table.
642
+ #
643
+ # class Asset < ActiveRecord::Base
644
+ # belongs_to :attachable, :polymorphic => true
645
+ #
646
+ # def attachable_type=(sType)
647
+ # super(sType.to_s.classify.constantize.base_class.to_s)
648
+ # end
649
+ # end
650
+ #
651
+ # class Post < ActiveRecord::Base
652
+ # # because we store "Post" in attachable_type now :dependent => :destroy will work
653
+ # has_many :assets, :as => :attachable, :dependent => :destroy
654
+ # end
655
+ #
656
+ # class GuestPost < Post
657
+ # end
658
+ #
659
+ # class MemberPost < Post
660
+ # end
661
+ #
662
+ # == Caching
663
+ #
664
+ # All of the methods are built on a simple caching principle that will keep the result
665
+ # of the last query around unless specifically instructed not to. The cache is even
666
+ # shared across methods to make it even cheaper to use the macro-added methods without
667
+ # worrying too much about performance at the first go.
668
+ #
669
+ # project.milestones # fetches milestones from the database
670
+ # project.milestones.size # uses the milestone cache
671
+ # project.milestones.empty? # uses the milestone cache
672
+ # project.milestones(true).size # fetches milestones from the database
673
+ # project.milestones # uses the milestone cache
674
+ #
675
+ # == Eager loading of associations
676
+ #
677
+ # Eager loading is a way to find objects of a certain class and a number of named associations.
678
+ # This is one of the easiest ways of to prevent the dreaded 1+N problem in which fetching 100
679
+ # posts that each need to display their author triggers 101 database queries. Through the
680
+ # use of eager loading, the 101 queries can be reduced to 2.
681
+ #
682
+ # class Post < ActiveRecord::Base
683
+ # belongs_to :author
684
+ # has_many :comments
685
+ # end
686
+ #
687
+ # Consider the following loop using the class above:
688
+ #
689
+ # Post.all.each do |post|
690
+ # puts "Post: " + post.title
691
+ # puts "Written by: " + post.author.name
692
+ # puts "Last comment on: " + post.comments.first.created_on
693
+ # end
694
+ #
695
+ # To iterate over these one hundred posts, we'll generate 201 database queries. Let's
696
+ # first just optimize it for retrieving the author:
697
+ #
698
+ # Post.includes(:author).each do |post|
699
+ #
700
+ # This references the name of the +belongs_to+ association that also used the <tt>:author</tt>
701
+ # symbol. After loading the posts, find will collect the +author_id+ from each one and load
702
+ # all the referenced authors with one query. Doing so will cut down the number of queries
703
+ # from 201 to 102.
704
+ #
705
+ # We can improve upon the situation further by referencing both associations in the finder with:
706
+ #
707
+ # Post.includes(:author, :comments).each do |post|
708
+ #
709
+ # This will load all comments with a single query. This reduces the total number of queries
710
+ # to 3. More generally the number of queries will be 1 plus the number of associations
711
+ # named (except if some of the associations are polymorphic +belongs_to+ - see below).
712
+ #
713
+ # To include a deep hierarchy of associations, use a hash:
714
+ #
715
+ # Post.includes(:author, {:comments => {:author => :gravatar}}).each do |post|
716
+ #
717
+ # That'll grab not only all the comments but all their authors and gravatar pictures.
718
+ # You can mix and match symbols, arrays and hashes in any combination to describe the
719
+ # associations you want to load.
720
+ #
721
+ # All of this power shouldn't fool you into thinking that you can pull out huge amounts
722
+ # of data with no performance penalty just because you've reduced the number of queries.
723
+ # The database still needs to send all the data to Active Record and it still needs to
724
+ # be processed. So it's no catch-all for performance problems, but it's a great way to
725
+ # cut down on the number of queries in a situation as the one described above.
726
+ #
727
+ # Since only one table is loaded at a time, conditions or orders cannot reference tables
728
+ # other than the main one. If this is the case Active Record falls back to the previously
729
+ # used LEFT OUTER JOIN based strategy. For example
730
+ #
731
+ # Post.includes([:author, :comments]).where(['comments.approved = ?', true]).all
732
+ #
733
+ # This will result in a single SQL query with joins along the lines of:
734
+ # <tt>LEFT OUTER JOIN comments ON comments.post_id = posts.id</tt> and
735
+ # <tt>LEFT OUTER JOIN authors ON authors.id = posts.author_id</tt>. Note that using conditions
736
+ # like this can have unintended consequences.
737
+ # In the above example posts with no approved comments are not returned at all, because
738
+ # the conditions apply to the SQL statement as a whole and not just to the association.
739
+ # You must disambiguate column references for this fallback to happen, for example
740
+ # <tt>:order => "author.name DESC"</tt> will work but <tt>:order => "name DESC"</tt> will not.
741
+ #
742
+ # If you do want eager load only some members of an association it is usually more natural
743
+ # to include an association which has conditions defined on it:
744
+ #
745
+ # class Post < ActiveRecord::Base
746
+ # has_many :approved_comments, :class_name => 'Comment', :conditions => ['approved = ?', true]
747
+ # end
748
+ #
749
+ # Post.includes(:approved_comments)
750
+ #
751
+ # This will load posts and eager load the +approved_comments+ association, which contains
752
+ # only those comments that have been approved.
753
+ #
754
+ # If you eager load an association with a specified <tt>:limit</tt> option, it will be ignored,
755
+ # returning all the associated objects:
756
+ #
757
+ # class Picture < ActiveRecord::Base
758
+ # has_many :most_recent_comments, :class_name => 'Comment', :order => 'id DESC', :limit => 10
759
+ # end
760
+ #
761
+ # Picture.includes(:most_recent_comments).first.most_recent_comments # => returns all associated comments.
762
+ #
763
+ # When eager loaded, conditions are interpolated in the context of the model class, not
764
+ # the model instance. Conditions are lazily interpolated before the actual model exists.
765
+ #
766
+ # Eager loading is supported with polymorphic associations.
767
+ #
768
+ # class Address < ActiveRecord::Base
769
+ # belongs_to :addressable, :polymorphic => true
770
+ # end
771
+ #
772
+ # A call that tries to eager load the addressable model
773
+ #
774
+ # Address.includes(:addressable)
775
+ #
776
+ # This will execute one query to load the addresses and load the addressables with one
777
+ # query per addressable type.
778
+ # For example if all the addressables are either of class Person or Company then a total
779
+ # of 3 queries will be executed. The list of addressable types to load is determined on
780
+ # the back of the addresses loaded. This is not supported if Active Record has to fallback
781
+ # to the previous implementation of eager loading and will raise ActiveRecord::EagerLoadPolymorphicError.
782
+ # The reason is that the parent model's type is a column value so its corresponding table
783
+ # name cannot be put in the +FROM+/+JOIN+ clauses of that query.
784
+ #
785
+ # == Table Aliasing
786
+ #
787
+ # Active Record uses table aliasing in the case that a table is referenced multiple times
788
+ # in a join. If a table is referenced only once, the standard table name is used. The
789
+ # second time, the table is aliased as <tt>#{reflection_name}_#{parent_table_name}</tt>.
790
+ # Indexes are appended for any more successive uses of the table name.
791
+ #
792
+ # Post.joins(:comments)
793
+ # # => SELECT ... FROM posts INNER JOIN comments ON ...
794
+ # Post.joins(:special_comments) # STI
795
+ # # => SELECT ... FROM posts INNER JOIN comments ON ... AND comments.type = 'SpecialComment'
796
+ # Post.joins(:comments, :special_comments) # special_comments is the reflection name, posts is the parent table name
797
+ # # => SELECT ... FROM posts INNER JOIN comments ON ... INNER JOIN comments special_comments_posts
798
+ #
799
+ # Acts as tree example:
800
+ #
801
+ # TreeMixin.joins(:children)
802
+ # # => SELECT ... FROM mixins INNER JOIN mixins childrens_mixins ...
803
+ # TreeMixin.joins(:children => :parent)
804
+ # # => SELECT ... FROM mixins INNER JOIN mixins childrens_mixins ...
805
+ # INNER JOIN parents_mixins ...
806
+ # TreeMixin.joins(:children => {:parent => :children})
807
+ # # => SELECT ... FROM mixins INNER JOIN mixins childrens_mixins ...
808
+ # INNER JOIN parents_mixins ...
809
+ # INNER JOIN mixins childrens_mixins_2
810
+ #
811
+ # Has and Belongs to Many join tables use the same idea, but add a <tt>_join</tt> suffix:
812
+ #
813
+ # Post.joins(:categories)
814
+ # # => SELECT ... FROM posts INNER JOIN categories_posts ... INNER JOIN categories ...
815
+ # Post.joins(:categories => :posts)
816
+ # # => SELECT ... FROM posts INNER JOIN categories_posts ... INNER JOIN categories ...
817
+ # INNER JOIN categories_posts posts_categories_join INNER JOIN posts posts_categories
818
+ # Post.joins(:categories => {:posts => :categories})
819
+ # # => SELECT ... FROM posts INNER JOIN categories_posts ... INNER JOIN categories ...
820
+ # INNER JOIN categories_posts posts_categories_join INNER JOIN posts posts_categories
821
+ # INNER JOIN categories_posts categories_posts_join INNER JOIN categories categories_posts_2
822
+ #
823
+ # If you wish to specify your own custom joins using <tt>joins</tt> method, those table
824
+ # names will take precedence over the eager associations:
825
+ #
826
+ # Post.joins(:comments).joins("inner join comments ...")
827
+ # # => SELECT ... FROM posts INNER JOIN comments_posts ON ... INNER JOIN comments ...
828
+ # Post.joins(:comments, :special_comments).joins("inner join comments ...")
829
+ # # => SELECT ... FROM posts INNER JOIN comments comments_posts ON ...
830
+ # INNER JOIN comments special_comments_posts ...
831
+ # INNER JOIN comments ...
832
+ #
833
+ # Table aliases are automatically truncated according to the maximum length of table identifiers
834
+ # according to the specific database.
835
+ #
836
+ # == Modules
837
+ #
838
+ # By default, associations will look for objects within the current module scope. Consider:
839
+ #
840
+ # module MyApplication
841
+ # module Business
842
+ # class Firm < ActiveRecord::Base
843
+ # has_many :clients
844
+ # end
845
+ #
846
+ # class Client < ActiveRecord::Base; end
847
+ # end
848
+ # end
849
+ #
850
+ # When <tt>Firm#clients</tt> is called, it will in turn call
851
+ # <tt>MyApplication::Business::Client.find_all_by_firm_id(firm.id)</tt>.
852
+ # If you want to associate with a class in another module scope, this can be done by
853
+ # specifying the complete class name.
854
+ #
855
+ # module MyApplication
856
+ # module Business
857
+ # class Firm < ActiveRecord::Base; end
858
+ # end
859
+ #
860
+ # module Billing
861
+ # class Account < ActiveRecord::Base
862
+ # belongs_to :firm, :class_name => "MyApplication::Business::Firm"
863
+ # end
864
+ # end
865
+ # end
866
+ #
867
+ # == Bi-directional associations
868
+ #
869
+ # When you specify an association there is usually an association on the associated model
870
+ # that specifies the same relationship in reverse. For example, with the following models:
871
+ #
872
+ # class Dungeon < ActiveRecord::Base
873
+ # has_many :traps
874
+ # has_one :evil_wizard
875
+ # end
876
+ #
877
+ # class Trap < ActiveRecord::Base
878
+ # belongs_to :dungeon
879
+ # end
880
+ #
881
+ # class EvilWizard < ActiveRecord::Base
882
+ # belongs_to :dungeon
883
+ # end
884
+ #
885
+ # The +traps+ association on +Dungeon+ and the +dungeon+ association on +Trap+ are
886
+ # the inverse of each other and the inverse of the +dungeon+ association on +EvilWizard+
887
+ # is the +evil_wizard+ association on +Dungeon+ (and vice-versa). By default,
888
+ # Active Record doesn't know anything about these inverse relationships and so no object
889
+ # loading optimization is possible. For example:
890
+ #
891
+ # d = Dungeon.first
892
+ # t = d.traps.first
893
+ # d.level == t.dungeon.level # => true
894
+ # d.level = 10
895
+ # d.level == t.dungeon.level # => false
896
+ #
897
+ # The +Dungeon+ instances +d+ and <tt>t.dungeon</tt> in the above example refer to
898
+ # the same object data from the database, but are actually different in-memory copies
899
+ # of that data. Specifying the <tt>:inverse_of</tt> option on associations lets you tell
900
+ # Active Record about inverse relationships and it will optimise object loading. For
901
+ # example, if we changed our model definitions to:
902
+ #
903
+ # class Dungeon < ActiveRecord::Base
904
+ # has_many :traps, :inverse_of => :dungeon
905
+ # has_one :evil_wizard, :inverse_of => :dungeon
906
+ # end
907
+ #
908
+ # class Trap < ActiveRecord::Base
909
+ # belongs_to :dungeon, :inverse_of => :traps
910
+ # end
911
+ #
912
+ # class EvilWizard < ActiveRecord::Base
913
+ # belongs_to :dungeon, :inverse_of => :evil_wizard
914
+ # end
915
+ #
916
+ # Then, from our code snippet above, +d+ and <tt>t.dungeon</tt> are actually the same
917
+ # in-memory instance and our final <tt>d.level == t.dungeon.level</tt> will return +true+.
918
+ #
919
+ # There are limitations to <tt>:inverse_of</tt> support:
920
+ #
921
+ # * does not work with <tt>:through</tt> associations.
922
+ # * does not work with <tt>:polymorphic</tt> associations.
923
+ # * for +belongs_to+ associations +has_many+ inverse associations are ignored.
924
+ #
925
+ # == Deleting from associations
926
+ #
927
+ # === Dependent associations
928
+ #
929
+ # +has_many+, +has_one+ and +belongs_to+ associations support the <tt>:dependent</tt> option.
930
+ # This allows you to specify that associated records should be deleted when the owner is
931
+ # deleted.
932
+ #
933
+ # For example:
934
+ #
935
+ # class Author
936
+ # has_many :posts, :dependent => :destroy
937
+ # end
938
+ # Author.find(1).destroy # => Will destroy all of the author's posts, too
939
+ #
940
+ # The <tt>:dependent</tt> option can have different values which specify how the deletion
941
+ # is done. For more information, see the documentation for this option on the different
942
+ # specific association types.
943
+ #
944
+ # === Delete or destroy?
945
+ #
946
+ # +has_many+ and +has_and_belongs_to_many+ associations have the methods <tt>destroy</tt>,
947
+ # <tt>delete</tt>, <tt>destroy_all</tt> and <tt>delete_all</tt>.
948
+ #
949
+ # For +has_and_belongs_to_many+, <tt>delete</tt> and <tt>destroy</tt> are the same: they
950
+ # cause the records in the join table to be removed.
951
+ #
952
+ # For +has_many+, <tt>destroy</tt> will always call the <tt>destroy</tt> method of the
953
+ # record(s) being removed so that callbacks are run. However <tt>delete</tt> will either
954
+ # do the deletion according to the strategy specified by the <tt>:dependent</tt> option, or
955
+ # if no <tt>:dependent</tt> option is given, then it will follow the default strategy.
956
+ # The default strategy is <tt>:nullify</tt> (set the foreign keys to <tt>nil</tt>), except for
957
+ # +has_many+ <tt>:through</tt>, where the default strategy is <tt>delete_all</tt> (delete
958
+ # the join records, without running their callbacks).
959
+ #
960
+ # There is also a <tt>clear</tt> method which is the same as <tt>delete_all</tt>, except that
961
+ # it returns the association rather than the records which have been deleted.
962
+ #
963
+ # === What gets deleted?
964
+ #
965
+ # There is a potential pitfall here: +has_and_belongs_to_many+ and +has_many+ <tt>:through</tt>
966
+ # associations have records in join tables, as well as the associated records. So when we
967
+ # call one of these deletion methods, what exactly should be deleted?
968
+ #
969
+ # The answer is that it is assumed that deletion on an association is about removing the
970
+ # <i>link</i> between the owner and the associated object(s), rather than necessarily the
971
+ # associated objects themselves. So with +has_and_belongs_to_many+ and +has_many+
972
+ # <tt>:through</tt>, the join records will be deleted, but the associated records won't.
973
+ #
974
+ # This makes sense if you think about it: if you were to call <tt>post.tags.delete(Tag.find_by_name('food'))</tt>
975
+ # you would want the 'food' tag to be unlinked from the post, rather than for the tag itself
976
+ # to be removed from the database.
977
+ #
978
+ # However, there are examples where this strategy doesn't make sense. For example, suppose
979
+ # a person has many projects, and each project has many tasks. If we deleted one of a person's
980
+ # tasks, we would probably not want the project to be deleted. In this scenario, the delete method
981
+ # won't actually work: it can only be used if the association on the join model is a
982
+ # +belongs_to+. In other situations you are expected to perform operations directly on
983
+ # either the associated records or the <tt>:through</tt> association.
984
+ #
985
+ # With a regular +has_many+ there is no distinction between the "associated records"
986
+ # and the "link", so there is only one choice for what gets deleted.
987
+ #
988
+ # With +has_and_belongs_to_many+ and +has_many+ <tt>:through</tt>, if you want to delete the
989
+ # associated records themselves, you can always do something along the lines of
990
+ # <tt>person.tasks.each(&:destroy)</tt>.
991
+ #
992
+ # == Type safety with <tt>ActiveRecord::AssociationTypeMismatch</tt>
993
+ #
994
+ # If you attempt to assign an object to an association that doesn't match the inferred
995
+ # or specified <tt>:class_name</tt>, you'll get an <tt>ActiveRecord::AssociationTypeMismatch</tt>.
996
+ #
997
+ # == Options
998
+ #
999
+ # All of the association macros can be specialized through options. This makes cases
1000
+ # more complex than the simple and guessable ones possible.
1001
+ module ClassMethods
1002
+ # Specifies a one-to-many association. The following methods for retrieval and query of
1003
+ # collections of associated objects will be added:
1004
+ #
1005
+ # [collection(force_reload = false)]
1006
+ # Returns an array of all the associated objects.
1007
+ # An empty array is returned if none are found.
1008
+ # [collection<<(object, ...)]
1009
+ # Adds one or more objects to the collection by setting their foreign keys to the collection's primary key.
1010
+ # Note that this operation instantly fires update sql without waiting for the save or update call on the
1011
+ # parent object.
1012
+ # [collection.delete(object, ...)]
1013
+ # Removes one or more objects from the collection by setting their foreign keys to +NULL+.
1014
+ # Objects will be in addition destroyed if they're associated with <tt>:dependent => :destroy</tt>,
1015
+ # and deleted if they're associated with <tt>:dependent => :delete_all</tt>.
1016
+ #
1017
+ # If the <tt>:through</tt> option is used, then the join records are deleted (rather than
1018
+ # nullified) by default, but you can specify <tt>:dependent => :destroy</tt> or
1019
+ # <tt>:dependent => :nullify</tt> to override this.
1020
+ # [collection=objects]
1021
+ # Replaces the collections content by deleting and adding objects as appropriate. If the <tt>:through</tt>
1022
+ # option is true callbacks in the join models are triggered except destroy callbacks, since deletion is
1023
+ # direct.
1024
+ # [collection_singular_ids]
1025
+ # Returns an array of the associated objects' ids
1026
+ # [collection_singular_ids=ids]
1027
+ # Replace the collection with the objects identified by the primary keys in +ids+. This
1028
+ # method loads the models and calls <tt>collection=</tt>. See above.
1029
+ # [collection.clear]
1030
+ # Removes every object from the collection. This destroys the associated objects if they
1031
+ # are associated with <tt>:dependent => :destroy</tt>, deletes them directly from the
1032
+ # database if <tt>:dependent => :delete_all</tt>, otherwise sets their foreign keys to +NULL+.
1033
+ # If the <tt>:through</tt> option is true no destroy callbacks are invoked on the join models.
1034
+ # Join models are directly deleted.
1035
+ # [collection.empty?]
1036
+ # Returns +true+ if there are no associated objects.
1037
+ # [collection.size]
1038
+ # Returns the number of associated objects.
1039
+ # [collection.find(...)]
1040
+ # Finds an associated object according to the same rules as ActiveRecord::Base.find.
1041
+ # [collection.exists?(...)]
1042
+ # Checks whether an associated object with the given conditions exists.
1043
+ # Uses the same rules as ActiveRecord::Base.exists?.
1044
+ # [collection.build(attributes = {}, ...)]
1045
+ # Returns one or more new objects of the collection type that have been instantiated
1046
+ # with +attributes+ and linked to this object through a foreign key, but have not yet
1047
+ # been saved.
1048
+ # [collection.create(attributes = {})]
1049
+ # Returns a new object of the collection type that has been instantiated
1050
+ # with +attributes+, linked to this object through a foreign key, and that has already
1051
+ # been saved (if it passed the validation). *Note*: This only works if the base model
1052
+ # already exists in the DB, not if it is a new (unsaved) record!
1053
+ #
1054
+ # (*Note*: +collection+ is replaced with the symbol passed as the first argument, so
1055
+ # <tt>has_many :clients</tt> would add among others <tt>clients.empty?</tt>.)
1056
+ #
1057
+ # === Example
1058
+ #
1059
+ # Example: A Firm class declares <tt>has_many :clients</tt>, which will add:
1060
+ # * <tt>Firm#clients</tt> (similar to <tt>Clients.all :conditions => ["firm_id = ?", id]</tt>)
1061
+ # * <tt>Firm#clients<<</tt>
1062
+ # * <tt>Firm#clients.delete</tt>
1063
+ # * <tt>Firm#clients=</tt>
1064
+ # * <tt>Firm#client_ids</tt>
1065
+ # * <tt>Firm#client_ids=</tt>
1066
+ # * <tt>Firm#clients.clear</tt>
1067
+ # * <tt>Firm#clients.empty?</tt> (similar to <tt>firm.clients.size == 0</tt>)
1068
+ # * <tt>Firm#clients.size</tt> (similar to <tt>Client.count "firm_id = #{id}"</tt>)
1069
+ # * <tt>Firm#clients.find</tt> (similar to <tt>Client.find(id, :conditions => "firm_id = #{id}")</tt>)
1070
+ # * <tt>Firm#clients.exists?(:name => 'ACME')</tt> (similar to <tt>Client.exists?(:name => 'ACME', :firm_id => firm.id)</tt>)
1071
+ # * <tt>Firm#clients.build</tt> (similar to <tt>Client.new("firm_id" => id)</tt>)
1072
+ # * <tt>Firm#clients.create</tt> (similar to <tt>c = Client.new("firm_id" => id); c.save; c</tt>)
1073
+ # The declaration can also include an options hash to specialize the behavior of the association.
1074
+ #
1075
+ # === Options
1076
+ # [:class_name]
1077
+ # Specify the class name of the association. Use it only if that name can't be inferred
1078
+ # from the association name. So <tt>has_many :products</tt> will by default be linked
1079
+ # to the Product class, but if the real class name is SpecialProduct, you'll have to
1080
+ # specify it with this option.
1081
+ # [:conditions]
1082
+ # Specify the conditions that the associated objects must meet in order to be included as a +WHERE+
1083
+ # SQL fragment, such as <tt>price > 5 AND name LIKE 'B%'</tt>. Record creations from
1084
+ # the association are scoped if a hash is used.
1085
+ # <tt>has_many :posts, :conditions => {:published => true}</tt> will create published
1086
+ # posts with <tt>@blog.posts.create</tt> or <tt>@blog.posts.build</tt>.
1087
+ # [:order]
1088
+ # Specify the order in which the associated objects are returned as an <tt>ORDER BY</tt> SQL fragment,
1089
+ # such as <tt>last_name, first_name DESC</tt>.
1090
+ # [:foreign_key]
1091
+ # Specify the foreign key used for the association. By default this is guessed to be the name
1092
+ # of this class in lower-case and "_id" suffixed. So a Person class that makes a +has_many+
1093
+ # association will use "person_id" as the default <tt>:foreign_key</tt>.
1094
+ # [:primary_key]
1095
+ # Specify the method that returns the primary key used for the association. By default this is +id+.
1096
+ # [:dependent]
1097
+ # If set to <tt>:destroy</tt> all the associated objects are destroyed
1098
+ # alongside this object by calling their +destroy+ method. If set to <tt>:delete_all</tt> all associated
1099
+ # objects are deleted *without* calling their +destroy+ method. If set to <tt>:nullify</tt> all associated
1100
+ # objects' foreign keys are set to +NULL+ *without* calling their +save+ callbacks. If set to
1101
+ # <tt>:restrict</tt> this object raises an <tt>ActiveRecord::DeleteRestrictionError</tt> exception and
1102
+ # cannot be deleted if it has any associated objects.
1103
+ #
1104
+ # If using with the <tt>:through</tt> option, the association on the join model must be
1105
+ # a +belongs_to+, and the records which get deleted are the join records, rather than
1106
+ # the associated records.
1107
+ #
1108
+ # [:finder_sql]
1109
+ # Specify a complete SQL statement to fetch the association. This is a good way to go for complex
1110
+ # associations that depend on multiple tables. May be supplied as a string or a proc where interpolation is
1111
+ # required. Note: When this option is used, +find_in_collection+
1112
+ # is _not_ added.
1113
+ # [:counter_sql]
1114
+ # Specify a complete SQL statement to fetch the size of the association. If <tt>:finder_sql</tt> is
1115
+ # specified but not <tt>:counter_sql</tt>, <tt>:counter_sql</tt> will be generated by
1116
+ # replacing <tt>SELECT ... FROM</tt> with <tt>SELECT COUNT(*) FROM</tt>.
1117
+ # [:extend]
1118
+ # Specify a named module for extending the proxy. See "Association extensions".
1119
+ # [:include]
1120
+ # Specify second-order associations that should be eager loaded when the collection is loaded.
1121
+ # [:group]
1122
+ # An attribute name by which the result should be grouped. Uses the <tt>GROUP BY</tt> SQL-clause.
1123
+ # [:having]
1124
+ # Combined with +:group+ this can be used to filter the records that a <tt>GROUP BY</tt>
1125
+ # returns. Uses the <tt>HAVING</tt> SQL-clause.
1126
+ # [:limit]
1127
+ # An integer determining the limit on the number of rows that should be returned.
1128
+ # [:offset]
1129
+ # An integer determining the offset from where the rows should be fetched. So at 5,
1130
+ # it would skip the first 4 rows.
1131
+ # [:select]
1132
+ # By default, this is <tt>*</tt> as in <tt>SELECT * FROM</tt>, but can be changed if
1133
+ # you, for example, want to do a join but not include the joined columns. Do not forget
1134
+ # to include the primary and foreign keys, otherwise it will raise an error.
1135
+ # [:as]
1136
+ # Specifies a polymorphic interface (See <tt>belongs_to</tt>).
1137
+ # [:through]
1138
+ # Specifies an association through which to perform the query. This can be any other type
1139
+ # of association, including other <tt>:through</tt> associations. Options for <tt>:class_name</tt>,
1140
+ # <tt>:primary_key</tt> and <tt>:foreign_key</tt> are ignored, as the association uses the
1141
+ # source reflection.
1142
+ #
1143
+ # If the association on the join model is a +belongs_to+, the collection can be modified
1144
+ # and the records on the <tt>:through</tt> model will be automatically created and removed
1145
+ # as appropriate. Otherwise, the collection is read-only, so you should manipulate the
1146
+ # <tt>:through</tt> association directly.
1147
+ #
1148
+ # If you are going to modify the association (rather than just read from it), then it is
1149
+ # a good idea to set the <tt>:inverse_of</tt> option on the source association on the
1150
+ # join model. This allows associated records to be built which will automatically create
1151
+ # the appropriate join model records when they are saved. (See the 'Association Join Models'
1152
+ # section above.)
1153
+ # [:source]
1154
+ # Specifies the source association name used by <tt>has_many :through</tt> queries.
1155
+ # Only use it if the name cannot be inferred from the association.
1156
+ # <tt>has_many :subscribers, :through => :subscriptions</tt> will look for either <tt>:subscribers</tt> or
1157
+ # <tt>:subscriber</tt> on Subscription, unless a <tt>:source</tt> is given.
1158
+ # [:source_type]
1159
+ # Specifies type of the source association used by <tt>has_many :through</tt> queries where the source
1160
+ # association is a polymorphic +belongs_to+.
1161
+ # [:uniq]
1162
+ # If true, duplicates will be omitted from the collection. Useful in conjunction with <tt>:through</tt>.
1163
+ # [:readonly]
1164
+ # If true, all the associated objects are readonly through the association.
1165
+ # [:validate]
1166
+ # If +false+, don't validate the associated objects when saving the parent object. true by default.
1167
+ # [:autosave]
1168
+ # If true, always save the associated objects or destroy them if marked for destruction,
1169
+ # when saving the parent object. If false, never save or destroy the associated objects.
1170
+ # By default, only save associated objects that are new records.
1171
+ # [:inverse_of]
1172
+ # Specifies the name of the <tt>belongs_to</tt> association on the associated object
1173
+ # that is the inverse of this <tt>has_many</tt> association. Does not work in combination
1174
+ # with <tt>:through</tt> or <tt>:as</tt> options.
1175
+ # See ActiveRecord::Associations::ClassMethods's overview on Bi-directional associations for more detail.
1176
+ #
1177
+ # Option examples:
1178
+ # has_many :comments, :order => "posted_on"
1179
+ # has_many :comments, :include => :author
1180
+ # has_many :people, :class_name => "Person", :conditions => "deleted = 0", :order => "name"
1181
+ # has_many :tracks, :order => "position", :dependent => :destroy
1182
+ # has_many :comments, :dependent => :nullify
1183
+ # has_many :tags, :as => :taggable
1184
+ # has_many :reports, :readonly => true
1185
+ # has_many :subscribers, :through => :subscriptions, :source => :user
1186
+ # has_many :subscribers, :class_name => "Person", :finder_sql => Proc.new {
1187
+ # %Q{
1188
+ # SELECT DISTINCT *
1189
+ # FROM people p, post_subscriptions ps
1190
+ # WHERE ps.post_id = #{id} AND ps.person_id = p.id
1191
+ # ORDER BY p.first_name
1192
+ # }
1193
+ # }
1194
+ def has_many(name, options = {}, &extension)
1195
+ Builder::HasMany.build(self, name, options, &extension)
1196
+ end
1197
+
1198
+ # Specifies a one-to-one association with another class. This method should only be used
1199
+ # if the other class contains the foreign key. If the current class contains the foreign key,
1200
+ # then you should use +belongs_to+ instead. See also ActiveRecord::Associations::ClassMethods's overview
1201
+ # on when to use has_one and when to use belongs_to.
1202
+ #
1203
+ # The following methods for retrieval and query of a single associated object will be added:
1204
+ #
1205
+ # [association(force_reload = false)]
1206
+ # Returns the associated object. +nil+ is returned if none is found.
1207
+ # [association=(associate)]
1208
+ # Assigns the associate object, extracts the primary key, sets it as the foreign key,
1209
+ # and saves the associate object.
1210
+ # [build_association(attributes = {})]
1211
+ # Returns a new object of the associated type that has been instantiated
1212
+ # with +attributes+ and linked to this object through a foreign key, but has not
1213
+ # yet been saved.
1214
+ # [create_association(attributes = {})]
1215
+ # Returns a new object of the associated type that has been instantiated
1216
+ # with +attributes+, linked to this object through a foreign key, and that
1217
+ # has already been saved (if it passed the validation).
1218
+ # [create_association!(attributes = {})]
1219
+ # Does the same as <tt>create_association</tt>, but raises <tt>ActiveRecord::RecordInvalid</tt>
1220
+ # if the record is invalid.
1221
+ #
1222
+ # (+association+ is replaced with the symbol passed as the first argument, so
1223
+ # <tt>has_one :manager</tt> would add among others <tt>manager.nil?</tt>.)
1224
+ #
1225
+ # === Example
1226
+ #
1227
+ # An Account class declares <tt>has_one :beneficiary</tt>, which will add:
1228
+ # * <tt>Account#beneficiary</tt> (similar to <tt>Beneficiary.first(:conditions => "account_id = #{id}")</tt>)
1229
+ # * <tt>Account#beneficiary=(beneficiary)</tt> (similar to <tt>beneficiary.account_id = account.id; beneficiary.save</tt>)
1230
+ # * <tt>Account#build_beneficiary</tt> (similar to <tt>Beneficiary.new("account_id" => id)</tt>)
1231
+ # * <tt>Account#create_beneficiary</tt> (similar to <tt>b = Beneficiary.new("account_id" => id); b.save; b</tt>)
1232
+ # * <tt>Account#create_beneficiary!</tt> (similar to <tt>b = Beneficiary.new("account_id" => id); b.save!; b</tt>)
1233
+ #
1234
+ # === Options
1235
+ #
1236
+ # The declaration can also include an options hash to specialize the behavior of the association.
1237
+ #
1238
+ # Options are:
1239
+ # [:class_name]
1240
+ # Specify the class name of the association. Use it only if that name can't be inferred
1241
+ # from the association name. So <tt>has_one :manager</tt> will by default be linked to the Manager class, but
1242
+ # if the real class name is Person, you'll have to specify it with this option.
1243
+ # [:conditions]
1244
+ # Specify the conditions that the associated object must meet in order to be included as a +WHERE+
1245
+ # SQL fragment, such as <tt>rank = 5</tt>. Record creation from the association is scoped if a hash
1246
+ # is used. <tt>has_one :account, :conditions => {:enabled => true}</tt> will create
1247
+ # an enabled account with <tt>@company.create_account</tt> or <tt>@company.build_account</tt>.
1248
+ # [:order]
1249
+ # Specify the order in which the associated objects are returned as an <tt>ORDER BY</tt> SQL fragment,
1250
+ # such as <tt>last_name, first_name DESC</tt>.
1251
+ # [:dependent]
1252
+ # If set to <tt>:destroy</tt>, the associated object is destroyed when this object is. If set to
1253
+ # <tt>:delete</tt>, the associated object is deleted *without* calling its destroy method.
1254
+ # If set to <tt>:nullify</tt>, the associated object's foreign key is set to +NULL+.
1255
+ # Also, association is assigned. If set to <tt>:restrict</tt> this object raises an
1256
+ # <tt>ActiveRecord::DeleteRestrictionError</tt> exception and cannot be deleted if it has any associated object.
1257
+ # [:foreign_key]
1258
+ # Specify the foreign key used for the association. By default this is guessed to be the name
1259
+ # of this class in lower-case and "_id" suffixed. So a Person class that makes a +has_one+ association
1260
+ # will use "person_id" as the default <tt>:foreign_key</tt>.
1261
+ # [:primary_key]
1262
+ # Specify the method that returns the primary key used for the association. By default this is +id+.
1263
+ # [:include]
1264
+ # Specify second-order associations that should be eager loaded when this object is loaded.
1265
+ # [:as]
1266
+ # Specifies a polymorphic interface (See <tt>belongs_to</tt>).
1267
+ # [:select]
1268
+ # By default, this is <tt>*</tt> as in <tt>SELECT * FROM</tt>, but can be changed if, for example,
1269
+ # you want to do a join but not include the joined columns. Do not forget to include the
1270
+ # primary and foreign keys, otherwise it will raise an error.
1271
+ # [:through]
1272
+ # Specifies a Join Model through which to perform the query. Options for <tt>:class_name</tt>,
1273
+ # <tt>:primary_key</tt>, and <tt>:foreign_key</tt> are ignored, as the association uses the
1274
+ # source reflection. You can only use a <tt>:through</tt> query through a <tt>has_one</tt>
1275
+ # or <tt>belongs_to</tt> association on the join model.
1276
+ # [:source]
1277
+ # Specifies the source association name used by <tt>has_one :through</tt> queries.
1278
+ # Only use it if the name cannot be inferred from the association.
1279
+ # <tt>has_one :favorite, :through => :favorites</tt> will look for a
1280
+ # <tt>:favorite</tt> on Favorite, unless a <tt>:source</tt> is given.
1281
+ # [:source_type]
1282
+ # Specifies type of the source association used by <tt>has_one :through</tt> queries where the source
1283
+ # association is a polymorphic +belongs_to+.
1284
+ # [:readonly]
1285
+ # If true, the associated object is readonly through the association.
1286
+ # [:validate]
1287
+ # If +false+, don't validate the associated object when saving the parent object. +false+ by default.
1288
+ # [:autosave]
1289
+ # If true, always save the associated object or destroy it if marked for destruction,
1290
+ # when saving the parent object. If false, never save or destroy the associated object.
1291
+ # By default, only save the associated object if it's a new record.
1292
+ # [:inverse_of]
1293
+ # Specifies the name of the <tt>belongs_to</tt> association on the associated object
1294
+ # that is the inverse of this <tt>has_one</tt> association. Does not work in combination
1295
+ # with <tt>:through</tt> or <tt>:as</tt> options.
1296
+ # See ActiveRecord::Associations::ClassMethods's overview on Bi-directional associations for more detail.
1297
+ #
1298
+ # Option examples:
1299
+ # has_one :credit_card, :dependent => :destroy # destroys the associated credit card
1300
+ # has_one :credit_card, :dependent => :nullify # updates the associated records foreign
1301
+ # # key value to NULL rather than destroying it
1302
+ # has_one :last_comment, :class_name => "Comment", :order => "posted_on"
1303
+ # has_one :project_manager, :class_name => "Person", :conditions => "role = 'project_manager'"
1304
+ # has_one :attachment, :as => :attachable
1305
+ # has_one :boss, :readonly => :true
1306
+ # has_one :club, :through => :membership
1307
+ # has_one :primary_address, :through => :addressables, :conditions => ["addressable.primary = ?", true], :source => :addressable
1308
+ def has_one(name, options = {})
1309
+ Builder::HasOne.build(self, name, options)
1310
+ end
1311
+
1312
+ # Specifies a one-to-one association with another class. This method should only be used
1313
+ # if this class contains the foreign key. If the other class contains the foreign key,
1314
+ # then you should use +has_one+ instead. See also ActiveRecord::Associations::ClassMethods's overview
1315
+ # on when to use +has_one+ and when to use +belongs_to+.
1316
+ #
1317
+ # Methods will be added for retrieval and query for a single associated object, for which
1318
+ # this object holds an id:
1319
+ #
1320
+ # [association(force_reload = false)]
1321
+ # Returns the associated object. +nil+ is returned if none is found.
1322
+ # [association=(associate)]
1323
+ # Assigns the associate object, extracts the primary key, and sets it as the foreign key.
1324
+ # [build_association(attributes = {})]
1325
+ # Returns a new object of the associated type that has been instantiated
1326
+ # with +attributes+ and linked to this object through a foreign key, but has not yet been saved.
1327
+ # [create_association(attributes = {})]
1328
+ # Returns a new object of the associated type that has been instantiated
1329
+ # with +attributes+, linked to this object through a foreign key, and that
1330
+ # has already been saved (if it passed the validation).
1331
+ # [create_association!(attributes = {})]
1332
+ # Does the same as <tt>create_association</tt>, but raises <tt>ActiveRecord::RecordInvalid</tt>
1333
+ # if the record is invalid.
1334
+ #
1335
+ # (+association+ is replaced with the symbol passed as the first argument, so
1336
+ # <tt>belongs_to :author</tt> would add among others <tt>author.nil?</tt>.)
1337
+ #
1338
+ # === Example
1339
+ #
1340
+ # A Post class declares <tt>belongs_to :author</tt>, which will add:
1341
+ # * <tt>Post#author</tt> (similar to <tt>Author.find(author_id)</tt>)
1342
+ # * <tt>Post#author=(author)</tt> (similar to <tt>post.author_id = author.id</tt>)
1343
+ # * <tt>Post#build_author</tt> (similar to <tt>post.author = Author.new</tt>)
1344
+ # * <tt>Post#create_author</tt> (similar to <tt>post.author = Author.new; post.author.save; post.author</tt>)
1345
+ # * <tt>Post#create_author!</tt> (similar to <tt>post.author = Author.new; post.author.save!; post.author</tt>)
1346
+ # The declaration can also include an options hash to specialize the behavior of the association.
1347
+ #
1348
+ # === Options
1349
+ #
1350
+ # [:class_name]
1351
+ # Specify the class name of the association. Use it only if that name can't be inferred
1352
+ # from the association name. So <tt>belongs_to :author</tt> will by default be linked to the Author class, but
1353
+ # if the real class name is Person, you'll have to specify it with this option.
1354
+ # [:conditions]
1355
+ # Specify the conditions that the associated object must meet in order to be included as a +WHERE+
1356
+ # SQL fragment, such as <tt>authorized = 1</tt>.
1357
+ # [:select]
1358
+ # By default, this is <tt>*</tt> as in <tt>SELECT * FROM</tt>, but can be changed
1359
+ # if, for example, you want to do a join but not include the joined columns. Do not
1360
+ # forget to include the primary and foreign keys, otherwise it will raise an error.
1361
+ # [:foreign_key]
1362
+ # Specify the foreign key used for the association. By default this is guessed to be the name
1363
+ # of the association with an "_id" suffix. So a class that defines a <tt>belongs_to :person</tt>
1364
+ # association will use "person_id" as the default <tt>:foreign_key</tt>. Similarly,
1365
+ # <tt>belongs_to :favorite_person, :class_name => "Person"</tt> will use a foreign key
1366
+ # of "favorite_person_id".
1367
+ # [:foreign_type]
1368
+ # Specify the column used to store the associated object's type, if this is a polymorphic
1369
+ # association. By default this is guessed to be the name of the association with a "_type"
1370
+ # suffix. So a class that defines a <tt>belongs_to :taggable, :polymorphic => true</tt>
1371
+ # association will use "taggable_type" as the default <tt>:foreign_type</tt>.
1372
+ # [:primary_key]
1373
+ # Specify the method that returns the primary key of associated object used for the association.
1374
+ # By default this is id.
1375
+ # [:dependent]
1376
+ # If set to <tt>:destroy</tt>, the associated object is destroyed when this object is. If set to
1377
+ # <tt>:delete</tt>, the associated object is deleted *without* calling its destroy method.
1378
+ # This option should not be specified when <tt>belongs_to</tt> is used in conjunction with
1379
+ # a <tt>has_many</tt> relationship on another class because of the potential to leave
1380
+ # orphaned records behind.
1381
+ # [:counter_cache]
1382
+ # Caches the number of belonging objects on the associate class through the use of +increment_counter+
1383
+ # and +decrement_counter+. The counter cache is incremented when an object of this
1384
+ # class is created and decremented when it's destroyed. This requires that a column
1385
+ # named <tt>#{table_name}_count</tt> (such as +comments_count+ for a belonging Comment class)
1386
+ # is used on the associate class (such as a Post class). You can also specify a custom counter
1387
+ # cache column by providing a column name instead of a +true+/+false+ value to this
1388
+ # option (e.g., <tt>:counter_cache => :my_custom_counter</tt>.)
1389
+ # Note: Specifying a counter cache will add it to that model's list of readonly attributes
1390
+ # using +attr_readonly+.
1391
+ # [:include]
1392
+ # Specify second-order associations that should be eager loaded when this object is loaded.
1393
+ # [:polymorphic]
1394
+ # Specify this association is a polymorphic association by passing +true+.
1395
+ # Note: If you've enabled the counter cache, then you may want to add the counter cache attribute
1396
+ # to the +attr_readonly+ list in the associated classes (e.g. <tt>class Post; attr_readonly :comments_count; end</tt>).
1397
+ # [:readonly]
1398
+ # If true, the associated object is readonly through the association.
1399
+ # [:validate]
1400
+ # If +false+, don't validate the associated objects when saving the parent object. +false+ by default.
1401
+ # [:autosave]
1402
+ # If true, always save the associated object or destroy it if marked for destruction, when
1403
+ # saving the parent object.
1404
+ # If false, never save or destroy the associated object.
1405
+ # By default, only save the associated object if it's a new record.
1406
+ # [:touch]
1407
+ # If true, the associated object will be touched (the updated_at/on attributes set to now)
1408
+ # when this record is either saved or destroyed. If you specify a symbol, that attribute
1409
+ # will be updated with the current time in addition to the updated_at/on attribute.
1410
+ # [:inverse_of]
1411
+ # Specifies the name of the <tt>has_one</tt> or <tt>has_many</tt> association on the associated
1412
+ # object that is the inverse of this <tt>belongs_to</tt> association. Does not work in
1413
+ # combination with the <tt>:polymorphic</tt> options.
1414
+ # See ActiveRecord::Associations::ClassMethods's overview on Bi-directional associations for more detail.
1415
+ #
1416
+ # Option examples:
1417
+ # belongs_to :firm, :foreign_key => "client_of"
1418
+ # belongs_to :person, :primary_key => "name", :foreign_key => "person_name"
1419
+ # belongs_to :author, :class_name => "Person", :foreign_key => "author_id"
1420
+ # belongs_to :valid_coupon, :class_name => "Coupon", :foreign_key => "coupon_id",
1421
+ # :conditions => 'discounts > #{payments_count}'
1422
+ # belongs_to :attachable, :polymorphic => true
1423
+ # belongs_to :project, :readonly => true
1424
+ # belongs_to :post, :counter_cache => true
1425
+ # belongs_to :company, :touch => true
1426
+ # belongs_to :company, :touch => :employees_last_updated_at
1427
+ def belongs_to(name, options = {})
1428
+ Builder::BelongsTo.build(self, name, options)
1429
+ end
1430
+
1431
+ # Specifies a many-to-many relationship with another class. This associates two classes via an
1432
+ # intermediate join table. Unless the join table is explicitly specified as an option, it is
1433
+ # guessed using the lexical order of the class names. So a join between Developer and Project
1434
+ # will give the default join table name of "developers_projects" because "D" outranks "P".
1435
+ # Note that this precedence is calculated using the <tt><</tt> operator for String. This
1436
+ # means that if the strings are of different lengths, and the strings are equal when compared
1437
+ # up to the shortest length, then the longer string is considered of higher
1438
+ # lexical precedence than the shorter one. For example, one would expect the tables "paper_boxes" and "papers"
1439
+ # to generate a join table name of "papers_paper_boxes" because of the length of the name "paper_boxes",
1440
+ # but it in fact generates a join table name of "paper_boxes_papers". Be aware of this caveat, and use the
1441
+ # custom <tt>:join_table</tt> option if you need to.
1442
+ #
1443
+ # The join table should not have a primary key or a model associated with it. You must manually generate the
1444
+ # join table with a migration such as this:
1445
+ #
1446
+ # class CreateDevelopersProjectsJoinTable < ActiveRecord::Migration
1447
+ # def change
1448
+ # create_table :developers_projects, :id => false do |t|
1449
+ # t.integer :developer_id
1450
+ # t.integer :project_id
1451
+ # end
1452
+ # end
1453
+ # end
1454
+ #
1455
+ # It's also a good idea to add indexes to each of those columns to speed up the joins process.
1456
+ # However, in MySQL it is advised to add a compound index for both of the columns as MySQL only
1457
+ # uses one index per table during the lookup.
1458
+ #
1459
+ # Adds the following methods for retrieval and query:
1460
+ #
1461
+ # [collection(force_reload = false)]
1462
+ # Returns an array of all the associated objects.
1463
+ # An empty array is returned if none are found.
1464
+ # [collection<<(object, ...)]
1465
+ # Adds one or more objects to the collection by creating associations in the join table
1466
+ # (<tt>collection.push</tt> and <tt>collection.concat</tt> are aliases to this method).
1467
+ # Note that this operation instantly fires update sql without waiting for the save or update call on the
1468
+ # parent object.
1469
+ # [collection.delete(object, ...)]
1470
+ # Removes one or more objects from the collection by removing their associations from the join table.
1471
+ # This does not destroy the objects.
1472
+ # [collection=objects]
1473
+ # Replaces the collection's content by deleting and adding objects as appropriate.
1474
+ # [collection_singular_ids]
1475
+ # Returns an array of the associated objects' ids.
1476
+ # [collection_singular_ids=ids]
1477
+ # Replace the collection by the objects identified by the primary keys in +ids+.
1478
+ # [collection.clear]
1479
+ # Removes every object from the collection. This does not destroy the objects.
1480
+ # [collection.empty?]
1481
+ # Returns +true+ if there are no associated objects.
1482
+ # [collection.size]
1483
+ # Returns the number of associated objects.
1484
+ # [collection.find(id)]
1485
+ # Finds an associated object responding to the +id+ and that
1486
+ # meets the condition that it has to be associated with this object.
1487
+ # Uses the same rules as ActiveRecord::Base.find.
1488
+ # [collection.exists?(...)]
1489
+ # Checks whether an associated object with the given conditions exists.
1490
+ # Uses the same rules as ActiveRecord::Base.exists?.
1491
+ # [collection.build(attributes = {})]
1492
+ # Returns a new object of the collection type that has been instantiated
1493
+ # with +attributes+ and linked to this object through the join table, but has not yet been saved.
1494
+ # [collection.create(attributes = {})]
1495
+ # Returns a new object of the collection type that has been instantiated
1496
+ # with +attributes+, linked to this object through the join table, and that has already been
1497
+ # saved (if it passed the validation).
1498
+ #
1499
+ # (+collection+ is replaced with the symbol passed as the first argument, so
1500
+ # <tt>has_and_belongs_to_many :categories</tt> would add among others <tt>categories.empty?</tt>.)
1501
+ #
1502
+ # === Example
1503
+ #
1504
+ # A Developer class declares <tt>has_and_belongs_to_many :projects</tt>, which will add:
1505
+ # * <tt>Developer#projects</tt>
1506
+ # * <tt>Developer#projects<<</tt>
1507
+ # * <tt>Developer#projects.delete</tt>
1508
+ # * <tt>Developer#projects=</tt>
1509
+ # * <tt>Developer#project_ids</tt>
1510
+ # * <tt>Developer#project_ids=</tt>
1511
+ # * <tt>Developer#projects.clear</tt>
1512
+ # * <tt>Developer#projects.empty?</tt>
1513
+ # * <tt>Developer#projects.size</tt>
1514
+ # * <tt>Developer#projects.find(id)</tt>
1515
+ # * <tt>Developer#projects.exists?(...)</tt>
1516
+ # * <tt>Developer#projects.build</tt> (similar to <tt>Project.new("developer_id" => id)</tt>)
1517
+ # * <tt>Developer#projects.create</tt> (similar to <tt>c = Project.new("developer_id" => id); c.save; c</tt>)
1518
+ # The declaration may include an options hash to specialize the behavior of the association.
1519
+ #
1520
+ # === Options
1521
+ #
1522
+ # [:class_name]
1523
+ # Specify the class name of the association. Use it only if that name can't be inferred
1524
+ # from the association name. So <tt>has_and_belongs_to_many :projects</tt> will by default be linked to the
1525
+ # Project class, but if the real class name is SuperProject, you'll have to specify it with this option.
1526
+ # [:join_table]
1527
+ # Specify the name of the join table if the default based on lexical order isn't what you want.
1528
+ # <b>WARNING:</b> If you're overwriting the table name of either class, the +table_name+ method
1529
+ # MUST be declared underneath any +has_and_belongs_to_many+ declaration in order to work.
1530
+ # [:foreign_key]
1531
+ # Specify the foreign key used for the association. By default this is guessed to be the name
1532
+ # of this class in lower-case and "_id" suffixed. So a Person class that makes
1533
+ # a +has_and_belongs_to_many+ association to Project will use "person_id" as the
1534
+ # default <tt>:foreign_key</tt>.
1535
+ # [:association_foreign_key]
1536
+ # Specify the foreign key used for the association on the receiving side of the association.
1537
+ # By default this is guessed to be the name of the associated class in lower-case and "_id" suffixed.
1538
+ # So if a Person class makes a +has_and_belongs_to_many+ association to Project,
1539
+ # the association will use "project_id" as the default <tt>:association_foreign_key</tt>.
1540
+ # [:conditions]
1541
+ # Specify the conditions that the associated object must meet in order to be included as a +WHERE+
1542
+ # SQL fragment, such as <tt>authorized = 1</tt>. Record creations from the association are
1543
+ # scoped if a hash is used.
1544
+ # <tt>has_many :posts, :conditions => {:published => true}</tt> will create published posts with <tt>@blog.posts.create</tt>
1545
+ # or <tt>@blog.posts.build</tt>.
1546
+ # [:order]
1547
+ # Specify the order in which the associated objects are returned as an <tt>ORDER BY</tt> SQL fragment,
1548
+ # such as <tt>last_name, first_name DESC</tt>
1549
+ # [:uniq]
1550
+ # If true, duplicate associated objects will be ignored by accessors and query methods.
1551
+ # [:finder_sql]
1552
+ # Overwrite the default generated SQL statement used to fetch the association with a manual statement
1553
+ # [:counter_sql]
1554
+ # Specify a complete SQL statement to fetch the size of the association. If <tt>:finder_sql</tt> is
1555
+ # specified but not <tt>:counter_sql</tt>, <tt>:counter_sql</tt> will be generated by
1556
+ # replacing <tt>SELECT ... FROM</tt> with <tt>SELECT COUNT(*) FROM</tt>.
1557
+ # [:delete_sql]
1558
+ # Overwrite the default generated SQL statement used to remove links between the associated
1559
+ # classes with a manual statement.
1560
+ # [:insert_sql]
1561
+ # Overwrite the default generated SQL statement used to add links between the associated classes
1562
+ # with a manual statement.
1563
+ # [:extend]
1564
+ # Anonymous module for extending the proxy, see "Association extensions".
1565
+ # [:include]
1566
+ # Specify second-order associations that should be eager loaded when the collection is loaded.
1567
+ # [:group]
1568
+ # An attribute name by which the result should be grouped. Uses the <tt>GROUP BY</tt> SQL-clause.
1569
+ # [:having]
1570
+ # Combined with +:group+ this can be used to filter the records that a <tt>GROUP BY</tt> returns.
1571
+ # Uses the <tt>HAVING</tt> SQL-clause.
1572
+ # [:limit]
1573
+ # An integer determining the limit on the number of rows that should be returned.
1574
+ # [:offset]
1575
+ # An integer determining the offset from where the rows should be fetched. So at 5,
1576
+ # it would skip the first 4 rows.
1577
+ # [:select]
1578
+ # By default, this is <tt>*</tt> as in <tt>SELECT * FROM</tt>, but can be changed if, for example,
1579
+ # you want to do a join but not include the joined columns. Do not forget to include the primary
1580
+ # and foreign keys, otherwise it will raise an error.
1581
+ # [:readonly]
1582
+ # If true, all the associated objects are readonly through the association.
1583
+ # [:validate]
1584
+ # If +false+, don't validate the associated objects when saving the parent object. +true+ by default.
1585
+ # [:autosave]
1586
+ # If true, always save the associated objects or destroy them if marked for destruction, when
1587
+ # saving the parent object.
1588
+ # If false, never save or destroy the associated objects.
1589
+ # By default, only save associated objects that are new records.
1590
+ #
1591
+ # Option examples:
1592
+ # has_and_belongs_to_many :projects
1593
+ # has_and_belongs_to_many :projects, :include => [ :milestones, :manager ]
1594
+ # has_and_belongs_to_many :nations, :class_name => "Country"
1595
+ # has_and_belongs_to_many :categories, :join_table => "prods_cats"
1596
+ # has_and_belongs_to_many :categories, :readonly => true
1597
+ # has_and_belongs_to_many :active_projects, :join_table => 'developers_projects', :delete_sql =>
1598
+ # "DELETE FROM developers_projects WHERE active=1 AND developer_id = #{id} AND project_id = #{record.id}"
1599
+ def has_and_belongs_to_many(name, options = {}, &extension)
1600
+ Builder::HasAndBelongsToMany.build(self, name, options, &extension)
1601
+ end
1602
+ end
1603
+ end
1604
+ end