dorsale 1.2.6 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/accounting.js +413 -0
  3. data/app/assets/javascripts/dorsale/billing_machine/all.coffee +20 -0
  4. data/app/assets/javascripts/dorsale/billing_machine/invoices.coffee +39 -0
  5. data/app/assets/javascripts/dorsale/billing_machine/quotations.coffee +38 -0
  6. data/app/assets/javascripts/dorsale/comments.coffee +4 -0
  7. data/app/assets/javascripts/dorsale/customer_vault/all.coffee +9 -0
  8. data/app/assets/javascripts/dorsale/datepicker.coffee +1 -1
  9. data/app/assets/javascripts/dorsale/flyboy/all.coffee +0 -0
  10. data/app/assets/javascripts/dorsale/forms.coffee +20 -6
  11. data/app/assets/stylesheets/dorsale/billing_machine/all.sass +15 -0
  12. data/app/assets/stylesheets/dorsale/bootstrap_nav_left.sass +34 -0
  13. data/app/assets/stylesheets/dorsale/comments.sass +25 -3
  14. data/app/assets/stylesheets/dorsale/customer_vault/all.sass +89 -0
  15. data/app/assets/stylesheets/dorsale/filters.sass +4 -1
  16. data/app/assets/stylesheets/dorsale/flyboy/all.sass +52 -0
  17. data/app/assets/stylesheets/dorsale/forms.sass +19 -0
  18. data/app/controllers/dorsale/alexandrie/attachments_controller.rb +52 -0
  19. data/app/controllers/dorsale/billing_machine/application_controller.rb +15 -0
  20. data/app/controllers/dorsale/billing_machine/invoices_controller.rb +180 -0
  21. data/app/controllers/dorsale/billing_machine/quotations_controller.rb +151 -0
  22. data/app/controllers/dorsale/comments_controller.rb +64 -17
  23. data/app/controllers/dorsale/customer_vault/application_controller.rb +26 -0
  24. data/app/controllers/dorsale/customer_vault/corporations_controller.rb +100 -0
  25. data/app/controllers/dorsale/customer_vault/individuals_controller.rb +104 -0
  26. data/app/controllers/dorsale/customer_vault/links_controller.rb +92 -0
  27. data/app/controllers/dorsale/customer_vault/people_controller.rb +42 -0
  28. data/app/controllers/dorsale/flyboy/application_controller.rb +9 -0
  29. data/app/controllers/dorsale/flyboy/folders_controller.rb +124 -0
  30. data/app/controllers/dorsale/flyboy/task_comments_controller.rb +29 -0
  31. data/app/controllers/dorsale/flyboy/tasks_controller.rb +171 -0
  32. data/app/controllers/dorsale/small_data/filters_controller.rb +7 -0
  33. data/app/helpers/dorsale/alexandrie/attachments_helper.rb +17 -0
  34. data/app/helpers/dorsale/all_helpers.rb +12 -9
  35. data/app/helpers/dorsale/button_helper.rb +23 -3
  36. data/app/helpers/dorsale/comments_helper.rb +4 -0
  37. data/app/helpers/dorsale/customer_vault/application_helper.rb +98 -0
  38. data/app/helpers/dorsale/flyboy/application_helper.rb +44 -0
  39. data/app/helpers/dorsale/form_helper.rb +7 -0
  40. data/app/helpers/dorsale/link_helper.rb +3 -2
  41. data/app/helpers/dorsale/routes_helper.rb +5 -3
  42. data/app/helpers/dorsale/text_helper.rb +28 -1
  43. data/app/models/dorsale/ability_helper.rb +7 -0
  44. data/app/models/dorsale/alexandrie/ability_helper.rb +9 -0
  45. data/app/models/dorsale/alexandrie/attachment.rb +18 -0
  46. data/app/models/dorsale/billing_machine/ability_helper.rb +10 -0
  47. data/app/models/dorsale/billing_machine/id_card.rb +18 -0
  48. data/app/models/dorsale/billing_machine/invoice.rb +126 -0
  49. data/app/models/dorsale/billing_machine/invoice_line.rb +27 -0
  50. data/app/models/dorsale/billing_machine/payment_term.rb +12 -0
  51. data/app/models/dorsale/billing_machine/quotation.rb +66 -0
  52. data/app/models/dorsale/billing_machine/quotation_line.rb +25 -0
  53. data/app/models/dorsale/billing_machine/small_data/filter_for_invoices.rb +21 -0
  54. data/app/models/dorsale/billing_machine/small_data/filter_for_quotations.rb +20 -0
  55. data/app/models/dorsale/billing_machine/small_data/filter_strategy_by_customer.rb +12 -0
  56. data/app/models/dorsale/billing_machine/small_data/filter_strategy_by_payment_status.rb +23 -0
  57. data/app/models/dorsale/billing_machine/small_data/filter_strategy_by_time_period.rb +27 -0
  58. data/app/models/dorsale/comment.rb +6 -2
  59. data/app/models/dorsale/customer_vault/ability_helper.rb +9 -0
  60. data/app/models/dorsale/customer_vault/corporation.rb +12 -0
  61. data/app/models/dorsale/customer_vault/individual.rb +17 -0
  62. data/app/models/dorsale/customer_vault/link.rb +10 -0
  63. data/app/models/dorsale/customer_vault/person.rb +35 -0
  64. data/app/models/dorsale/customer_vault/small_data/filter_for_people.rb +19 -0
  65. data/app/models/dorsale/customer_vault/small_data/filter_strategy_by_tags.rb +18 -0
  66. data/app/models/dorsale/flyboy/ability_helper.rb +41 -0
  67. data/app/models/dorsale/flyboy/folder.rb +77 -0
  68. data/app/models/dorsale/flyboy/small_data/filter_for_folders.rb +19 -0
  69. data/app/models/dorsale/flyboy/small_data/filter_for_tasks.rb +19 -0
  70. data/app/models/dorsale/flyboy/small_data/filter_strategy_by_done.rb +12 -0
  71. data/app/models/dorsale/flyboy/small_data/filter_strategy_by_nothing.rb +11 -0
  72. data/app/models/dorsale/flyboy/small_data/filter_strategy_by_status.rb +15 -0
  73. data/app/models/dorsale/flyboy/task.rb +97 -0
  74. data/app/models/dorsale/flyboy/task_comment.rb +35 -0
  75. data/app/pdfs/dorsale/billing_machine/invoice_pdf.rb +209 -0
  76. data/app/pdfs/dorsale/billing_machine/quotation_pdf.rb +53 -0
  77. data/app/pdfs/dorsale/flyboy/roadmap.rb +51 -0
  78. data/app/uploaders/dorsale/alexandrie/file_uploader.rb +6 -0
  79. data/app/uploaders/dorsale/file_uploader.rb +9 -0
  80. data/app/uploaders/dorsale/image_uploader.rb +7 -0
  81. data/app/views/dorsale/_contextual.html.slim +3 -0
  82. data/app/views/dorsale/alexandrie/attachments/_form.html.slim +13 -0
  83. data/app/views/dorsale/alexandrie/attachments/_form_and_list.html.slim +2 -0
  84. data/app/views/dorsale/alexandrie/attachments/_list.html.slim +7 -0
  85. data/app/views/dorsale/billing_machine/invoices/_data_context.html.slim +10 -0
  86. data/app/views/dorsale/billing_machine/invoices/_filters.html.slim +16 -0
  87. data/app/views/dorsale/billing_machine/invoices/_form.html.slim +62 -0
  88. data/app/views/dorsale/billing_machine/invoices/_line_fields.html.slim +23 -0
  89. data/app/views/dorsale/billing_machine/invoices/_list.html.slim +30 -0
  90. data/app/views/dorsale/billing_machine/invoices/edit.html.slim +2 -0
  91. data/app/views/dorsale/billing_machine/invoices/index.html.slim +15 -0
  92. data/app/views/dorsale/billing_machine/invoices/new.html.slim +2 -0
  93. data/app/views/dorsale/billing_machine/invoices/show.html.slim +53 -0
  94. data/app/views/dorsale/billing_machine/quotations/_data_context.html.slim +10 -0
  95. data/app/views/dorsale/billing_machine/quotations/_filters.html.slim +13 -0
  96. data/app/views/dorsale/billing_machine/quotations/_form.html.slim +55 -0
  97. data/app/views/dorsale/billing_machine/quotations/_line_fields.html.slim +23 -0
  98. data/app/views/dorsale/billing_machine/quotations/_list.html.slim +30 -0
  99. data/app/views/dorsale/billing_machine/quotations/edit.html.slim +2 -0
  100. data/app/views/dorsale/billing_machine/quotations/index.html.slim +14 -0
  101. data/app/views/dorsale/billing_machine/quotations/new.html.slim +2 -0
  102. data/app/views/dorsale/billing_machine/quotations/show.html.slim +61 -0
  103. data/app/views/dorsale/comments/_comment.html.slim +23 -9
  104. data/app/views/dorsale/comments/_comments.html.slim +2 -2
  105. data/app/views/dorsale/comments/_form.html.slim +1 -1
  106. data/app/views/dorsale/comments/_list.html.slim +2 -0
  107. data/app/views/dorsale/comments/edit.html.slim +5 -0
  108. data/app/views/dorsale/customer_vault/_breadcrumb.html.slim +4 -0
  109. data/app/views/dorsale/customer_vault/corporations/_context.html.slim +20 -0
  110. data/app/views/dorsale/customer_vault/corporations/_form.html.slim +21 -0
  111. data/app/views/dorsale/customer_vault/corporations/_list_details.html.slim +20 -0
  112. data/app/views/dorsale/customer_vault/corporations/edit.html.slim +14 -0
  113. data/app/views/dorsale/customer_vault/corporations/new.html.slim +14 -0
  114. data/app/views/dorsale/customer_vault/corporations/show.html.slim +1 -0
  115. data/app/views/dorsale/customer_vault/individuals/_context.html.slim +15 -0
  116. data/app/views/dorsale/customer_vault/individuals/_form.html.slim +22 -0
  117. data/app/views/dorsale/customer_vault/individuals/_list_details.html.slim +20 -0
  118. data/app/views/dorsale/customer_vault/individuals/edit.html.slim +14 -0
  119. data/app/views/dorsale/customer_vault/individuals/new.html.slim +14 -0
  120. data/app/views/dorsale/customer_vault/individuals/show.html.slim +1 -0
  121. data/app/views/dorsale/customer_vault/links/_title.html.slim +7 -0
  122. data/app/views/dorsale/customer_vault/links/edit.html.slim +19 -0
  123. data/app/views/dorsale/customer_vault/links/new.html.slim +15 -0
  124. data/app/views/dorsale/customer_vault/people/_activity_tab.html.slim +5 -0
  125. data/app/views/dorsale/customer_vault/people/_comment.html.slim +1 -0
  126. data/app/views/dorsale/customer_vault/people/_context.html.slim +4 -0
  127. data/app/views/dorsale/customer_vault/people/_data_context.html.slim +32 -0
  128. data/app/views/dorsale/customer_vault/people/_filters.html.slim +15 -0
  129. data/app/views/dorsale/customer_vault/people/_index_tabs.html.slim +7 -0
  130. data/app/views/dorsale/customer_vault/people/_links_tab.html.slim +16 -0
  131. data/app/views/dorsale/customer_vault/people/_new_people_contexts.html.slim +7 -0
  132. data/app/views/dorsale/customer_vault/people/_show.html.slim +31 -0
  133. data/app/views/dorsale/customer_vault/people/_tasks_tab.html.slim +1 -0
  134. data/app/views/dorsale/customer_vault/people/activity.slim +20 -0
  135. data/app/views/dorsale/customer_vault/people/list.html.slim +27 -0
  136. data/app/views/dorsale/flyboy/_filters.html.slim +12 -0
  137. data/app/views/dorsale/flyboy/folders/_actions.html.slim +15 -0
  138. data/app/views/dorsale/flyboy/folders/_context.html.slim +18 -0
  139. data/app/views/dorsale/flyboy/folders/_form.html.slim +22 -0
  140. data/app/views/dorsale/flyboy/folders/_list.html.slim +30 -0
  141. data/app/views/dorsale/flyboy/folders/edit.html.slim +2 -0
  142. data/app/views/dorsale/flyboy/folders/index.html.slim +8 -0
  143. data/app/views/dorsale/flyboy/folders/new.html.slim +2 -0
  144. data/app/views/dorsale/flyboy/folders/show.html.slim +9 -0
  145. data/app/views/dorsale/flyboy/task_comments/_list.html.slim +31 -0
  146. data/app/views/dorsale/flyboy/tasks/_actions.html.slim +9 -0
  147. data/app/views/dorsale/flyboy/tasks/_context.html.slim +15 -0
  148. data/app/views/dorsale/flyboy/tasks/_form.html.slim +29 -0
  149. data/app/views/dorsale/flyboy/tasks/_list.html.slim +43 -0
  150. data/app/views/dorsale/flyboy/tasks/_tasks_for_taskable.html.slim +6 -0
  151. data/app/views/dorsale/flyboy/tasks/edit.html.slim +2 -0
  152. data/app/views/dorsale/flyboy/tasks/index.html.slim +10 -0
  153. data/app/views/dorsale/flyboy/tasks/index.xls.erb +29 -0
  154. data/app/views/dorsale/flyboy/tasks/new.html.slim +2 -0
  155. data/app/views/dorsale/flyboy/tasks/show.html.slim +14 -0
  156. data/app/views/dorsale/search/_form.html.slim +6 -0
  157. data/config/locales/alexandrie.fr.yml +8 -0
  158. data/config/locales/billing_machine.fr.yml +50 -0
  159. data/config/locales/common.fr.yml +142 -0
  160. data/config/locales/customer_vault.fr.yml +69 -0
  161. data/config/locales/flyboy.fr.yml +66 -0
  162. data/config/locales/fr.yml +8 -87
  163. data/config/routes.rb +50 -1
  164. data/db/migrate/20141010140200_create_dorsale_addresses.rb +1 -1
  165. data/db/migrate/20150312083147_create_dorsale_comments.rb +3 -3
  166. data/db/migrate/20150616074852_create_dorsale_alexandrie_attachments.rb +9 -0
  167. data/db/migrate/20150622075000_create_flyboy.rb +50 -0
  168. data/db/migrate/20150622075038_create_billing_machine.rb +121 -0
  169. data/db/migrate/20150622105217_create_customer_vault.rb +49 -0
  170. data/db/migrate/20150623093218_dorsale_v2_changes.rb +68 -0
  171. data/db/migrate/20150625093326_billing_machine_quotations_add_expires_at.rb +5 -0
  172. data/db/migrate/20150625131155_billing_machine_add_tracking_ids.rb +6 -0
  173. data/lib/active_record_comma_type_cast.rb +12 -0
  174. data/lib/dorsale/alexandrie/prawn.rb +17 -0
  175. data/lib/dorsale/engine.rb +19 -0
  176. data/lib/dorsale/file_loader.rb +10 -0
  177. data/lib/dorsale/model_i18n.rb +21 -0
  178. data/lib/dorsale/model_to_s.rb +13 -0
  179. data/lib/dorsale/polymorphic_id.rb +2 -0
  180. data/lib/dorsale/version.rb +1 -1
  181. data/spec/controllers/dorsale/alexandrie/attachments_controller_spec.rb +47 -0
  182. data/spec/controllers/dorsale/comments_controller_spec.rb +45 -0
  183. data/spec/controllers/dorsale/customer_vault/corporations_controller_spec.rb +132 -0
  184. data/spec/controllers/dorsale/customer_vault/individuals_controller_spec.rb +130 -0
  185. data/spec/controllers/dorsale/customer_vault/people_controller_spec.rb +59 -0
  186. data/spec/controllers/dorsale/flyboy/folders_controller_spec.rb +111 -0
  187. data/spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb +16 -0
  188. data/spec/controllers/dorsale/flyboy/tasks_controller_spec.rb +234 -0
  189. data/spec/dummy/app/assets/javascripts/application.coffee +10 -0
  190. data/spec/dummy/app/assets/stylesheets/application.sass +9 -0
  191. data/spec/dummy/app/controllers/application_controller.rb +4 -0
  192. data/spec/dummy/app/models/ability.rb +16 -0
  193. data/spec/dummy/app/models/dummy_model.rb +2 -0
  194. data/spec/dummy/app/views/layouts/application.html.erb +10 -3
  195. data/spec/dummy/config/application.rb +4 -2
  196. data/spec/dummy/db/development.sqlite3 +0 -0
  197. data/spec/dummy/db/migrate/20150616082916_create_dorsale_dummy_models.rb +8 -0
  198. data/spec/dummy/db/migrate/20150624081204_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +31 -0
  199. data/spec/dummy/db/migrate/20150624081205_add_missing_unique_indices.acts_as_taggable_on_engine.rb +20 -0
  200. data/spec/dummy/db/migrate/20150624081206_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +15 -0
  201. data/spec/dummy/db/migrate/20150624081207_add_missing_taggable_index.acts_as_taggable_on_engine.rb +10 -0
  202. data/spec/dummy/db/migrate/20150624081208_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +10 -0
  203. data/spec/dummy/db/schema.rb +243 -5
  204. data/spec/dummy/db/seed.rb +1 -0
  205. data/spec/dummy/db/test.sqlite3 +0 -0
  206. data/spec/dummy/log/development.log +227 -0
  207. data/spec/dummy/log/test.log +2740 -25
  208. data/spec/dummy/{app/assets/stylesheets/application.css → tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705} +0 -0
  209. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  210. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  211. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  212. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  213. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  214. data/spec/factories/alexandrie_attachments.rb +12 -0
  215. data/spec/factories/billing_machine_id_cards.rb +26 -0
  216. data/spec/factories/billing_machine_invoice_lines.rb +11 -0
  217. data/spec/factories/billing_machine_invoices.rb +12 -0
  218. data/spec/factories/billing_machine_payment_terms.rb +5 -0
  219. data/spec/factories/billing_machine_quotation_lines.rb +12 -0
  220. data/spec/factories/billing_machine_quotations.rb +12 -0
  221. data/spec/factories/customer_vault_corporations.rb +14 -0
  222. data/spec/factories/customer_vault_individuals.rb +19 -0
  223. data/spec/factories/customer_vault_links.rb +7 -0
  224. data/spec/factories/dorsale_addresses.rb +6 -8
  225. data/spec/factories/dorsale_comments.rb +8 -0
  226. data/spec/factories/flyboy_folders.rb +7 -0
  227. data/spec/factories/flyboy_task_comments.rb +8 -0
  228. data/spec/factories/flyboy_tasks.rb +12 -0
  229. data/spec/files/pdf.pdf +0 -0
  230. data/spec/helpers/dorsale/flyboy/application_helper_spec.rb +91 -0
  231. data/spec/helpers/dorsale/link_helper_spec.rb +1 -0
  232. data/spec/helpers/dorsale/text_helper_spec.rb +33 -9
  233. data/spec/models/dorsale/ability_helper_spec.rb +11 -0
  234. data/spec/models/dorsale/alexandrie/ability_helper_spec.rb +10 -0
  235. data/spec/models/dorsale/alexandrie/attachment_spec.rb +12 -0
  236. data/spec/models/dorsale/billing_machine/id_card_spec.rb +12 -0
  237. data/spec/models/dorsale/billing_machine/invoice_line_spec.rb +50 -0
  238. data/spec/models/dorsale/billing_machine/invoice_spec.rb +156 -0
  239. data/spec/models/dorsale/billing_machine/quotation_line_spec.rb +36 -0
  240. data/spec/models/dorsale/billing_machine/quotation_spec.rb +91 -0
  241. data/spec/models/dorsale/comment_spec.rb +11 -0
  242. data/spec/models/dorsale/customer_vault/corporation_spec.rb +17 -0
  243. data/spec/models/dorsale/customer_vault/individual_spec.rb +17 -0
  244. data/spec/models/dorsale/customer_vault/link_spec.rb +12 -0
  245. data/spec/models/dorsale/customer_vault/person_spec.rb +44 -0
  246. data/spec/models/dorsale/flyboy/ability_spec.rb +148 -0
  247. data/spec/models/dorsale/flyboy/folder_spec.rb +103 -0
  248. data/spec/models/dorsale/flyboy/task_comment_spec.rb +52 -0
  249. data/spec/models/dorsale/flyboy/task_spec.rb +83 -0
  250. data/spec/pdfs/dorsale/billing_machine/invoice_pdf_spec.rb +252 -0
  251. data/spec/pdfs/dorsale/billing_machine/quotation_pdf_spec.rb +255 -0
  252. data/spec/rails_helper.rb +11 -11
  253. data/spec/routing/dorsale/alexandrie/attachments_routing_spec.rb +19 -0
  254. data/spec/routing/dorsale/billing_machine/invoices_routing_spec.rb +53 -0
  255. data/spec/routing/dorsale/billing_machine/quotations_routing_spec.rb +43 -0
  256. data/spec/routing/dorsale/comments_routing_spec.rb +25 -0
  257. data/spec/routing/dorsale/customer_vault/corporations_routing_spec.rb +66 -0
  258. data/spec/routing/dorsale/customer_vault/individual_routing_spec.rb +66 -0
  259. data/spec/routing/dorsale/customer_vault/people_routing_spec.rb +22 -0
  260. data/spec/routing/dorsale/flyboy/folders_routing_spec.rb +44 -0
  261. data/spec/routing/dorsale/flyboy/task_comments_routing_spec.rb +12 -0
  262. data/spec/routing/dorsale/flyboy/tasks_routing_spec.rb +44 -0
  263. data/spec/spec_helper.rb +0 -6
  264. metadata +439 -10
  265. data/MIT-LICENSE +0 -20
  266. data/README.rdoc +0 -3
  267. data/spec/dummy/app/assets/javascripts/application.js +0 -13
Binary file
@@ -0,0 +1,8 @@
1
+ class CreateDorsaleDummyModels < ActiveRecord::Migration
2
+ def change
3
+ create_table :dummy_models do |t|
4
+ t.string :name
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,31 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 1)
2
+ class ActsAsTaggableOnMigration < ActiveRecord::Migration
3
+ def self.up
4
+ create_table :tags do |t|
5
+ t.string :name
6
+ end
7
+
8
+ create_table :taggings do |t|
9
+ t.references :tag
10
+
11
+ # You should make sure that the column created is
12
+ # long enough to store the required class names.
13
+ t.references :taggable, polymorphic: true
14
+ t.references :tagger, polymorphic: true
15
+
16
+ # Limit is created to prevent MySQL error on index
17
+ # length for MyISAM table type: http://bit.ly/vgW2Ql
18
+ t.string :context, limit: 128
19
+
20
+ t.datetime :created_at
21
+ end
22
+
23
+ add_index :taggings, :tag_id
24
+ add_index :taggings, [:taggable_id, :taggable_type, :context]
25
+ end
26
+
27
+ def self.down
28
+ drop_table :taggings
29
+ drop_table :tags
30
+ end
31
+ end
@@ -0,0 +1,20 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 2)
2
+ class AddMissingUniqueIndices < ActiveRecord::Migration
3
+ def self.up
4
+ add_index :tags, :name, unique: true
5
+
6
+ remove_index :taggings, :tag_id
7
+ remove_index :taggings, [:taggable_id, :taggable_type, :context]
8
+ add_index :taggings,
9
+ [:tag_id, :taggable_id, :taggable_type, :context, :tagger_id, :tagger_type],
10
+ unique: true, name: 'taggings_idx'
11
+ end
12
+
13
+ def self.down
14
+ remove_index :tags, :name
15
+
16
+ remove_index :taggings, name: 'taggings_idx'
17
+ add_index :taggings, :tag_id
18
+ add_index :taggings, [:taggable_id, :taggable_type, :context]
19
+ end
20
+ end
@@ -0,0 +1,15 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 3)
2
+ class AddTaggingsCounterCacheToTags < ActiveRecord::Migration
3
+ def self.up
4
+ add_column :tags, :taggings_count, :integer, default: 0
5
+
6
+ ActsAsTaggableOn::Tag.reset_column_information
7
+ ActsAsTaggableOn::Tag.find_each do |tag|
8
+ ActsAsTaggableOn::Tag.reset_counters(tag.id, :taggings)
9
+ end
10
+ end
11
+
12
+ def self.down
13
+ remove_column :tags, :taggings_count
14
+ end
15
+ end
@@ -0,0 +1,10 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 4)
2
+ class AddMissingTaggableIndex < ActiveRecord::Migration
3
+ def self.up
4
+ add_index :taggings, [:taggable_id, :taggable_type, :context]
5
+ end
6
+
7
+ def self.down
8
+ remove_index :taggings, [:taggable_id, :taggable_type, :context]
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # This migration comes from acts_as_taggable_on_engine (originally 5)
2
+ # This migration is added to circumvent issue #623 and have special characters
3
+ # work properly
4
+ class ChangeCollationForTagNames < ActiveRecord::Migration
5
+ def up
6
+ if ActsAsTaggableOn::Utils.using_mysql?
7
+ execute("ALTER TABLE tags MODIFY name varchar(255) CHARACTER SET utf8 COLLATE utf8_bin;")
8
+ end
9
+ end
10
+ end
@@ -11,21 +11,144 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150312083147) do
14
+ ActiveRecord::Schema.define(version: 20150625131155) do
15
15
 
16
- create_table "dorsale_addresses", force: true do |t|
16
+ create_table "dorsale_addresses", force: :cascade do |t|
17
17
  t.string "street"
18
18
  t.string "street_bis"
19
19
  t.string "city"
20
20
  t.string "zip"
21
21
  t.string "country"
22
- t.datetime "created_at"
23
- t.datetime "updated_at"
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
24
24
  t.integer "addressable_id"
25
25
  t.string "addressable_type"
26
26
  end
27
27
 
28
- create_table "dorsale_comments", force: true do |t|
28
+ create_table "dorsale_alexandrie_attachments", force: :cascade do |t|
29
+ t.integer "attachable_id"
30
+ t.string "attachable_type"
31
+ t.string "file"
32
+ end
33
+
34
+ create_table "dorsale_billing_machine_id_cards", force: :cascade do |t|
35
+ t.string "id_card_name"
36
+ t.string "entity_name"
37
+ t.string "siret"
38
+ t.string "legal_form"
39
+ t.integer "capital"
40
+ t.string "registration_number"
41
+ t.string "intracommunity_vat"
42
+ t.string "address1"
43
+ t.string "address2"
44
+ t.string "zip"
45
+ t.string "city"
46
+ t.string "phone"
47
+ t.string "contact_full_name"
48
+ t.string "contact_phone"
49
+ t.string "contact_address_1"
50
+ t.string "contact_address_2"
51
+ t.string "contact_zip"
52
+ t.string "contact_city"
53
+ t.string "iban"
54
+ t.string "bic_swift"
55
+ t.string "bank_name"
56
+ t.string "bank_address"
57
+ t.string "ape_naf"
58
+ t.text "custom_info_1"
59
+ t.text "custom_info_2"
60
+ t.text "custom_info_3"
61
+ t.string "contact_fax"
62
+ t.string "contact_email"
63
+ t.string "logo"
64
+ t.string "registration_city"
65
+ t.datetime "created_at", null: false
66
+ t.datetime "updated_at", null: false
67
+ end
68
+
69
+ create_table "dorsale_billing_machine_invoice_lines", force: :cascade do |t|
70
+ t.integer "invoice_id"
71
+ t.text "label"
72
+ t.decimal "quantity"
73
+ t.string "unit"
74
+ t.decimal "unit_price"
75
+ t.decimal "total"
76
+ t.datetime "created_at", null: false
77
+ t.datetime "updated_at", null: false
78
+ end
79
+
80
+ add_index "dorsale_billing_machine_invoice_lines", ["invoice_id"], name: "index_dorsale_billing_machine_invoice_lines_on_invoice_id"
81
+
82
+ create_table "dorsale_billing_machine_invoices", force: :cascade do |t|
83
+ t.integer "customer_id"
84
+ t.string "customer_type"
85
+ t.integer "payment_term_id"
86
+ t.integer "id_card_id"
87
+ t.date "date"
88
+ t.string "label"
89
+ t.decimal "total_duty"
90
+ t.decimal "vat_amount"
91
+ t.decimal "total_all_taxes"
92
+ t.decimal "advance"
93
+ t.decimal "balance"
94
+ t.integer "unique_index"
95
+ t.decimal "vat_rate"
96
+ t.boolean "paid"
97
+ t.date "due_date"
98
+ t.datetime "created_at", null: false
99
+ t.datetime "updated_at", null: false
100
+ t.string "tracking_id"
101
+ end
102
+
103
+ add_index "dorsale_billing_machine_invoices", ["customer_id"], name: "index_dorsale_billing_machine_invoices_on_customer_id"
104
+ add_index "dorsale_billing_machine_invoices", ["customer_type"], name: "index_dorsale_billing_machine_invoices_on_customer_type"
105
+ add_index "dorsale_billing_machine_invoices", ["id_card_id"], name: "index_dorsale_billing_machine_invoices_on_id_card_id"
106
+ add_index "dorsale_billing_machine_invoices", ["payment_term_id"], name: "index_dorsale_billing_machine_invoices_on_payment_term_id"
107
+
108
+ create_table "dorsale_billing_machine_payment_terms", force: :cascade do |t|
109
+ t.string "label"
110
+ t.datetime "created_at", null: false
111
+ t.datetime "updated_at", null: false
112
+ end
113
+
114
+ create_table "dorsale_billing_machine_quotation_lines", force: :cascade do |t|
115
+ t.integer "quotation_id"
116
+ t.text "label"
117
+ t.decimal "quantity"
118
+ t.string "unit"
119
+ t.decimal "unit_price"
120
+ t.decimal "total"
121
+ t.datetime "created_at", null: false
122
+ t.datetime "updated_at", null: false
123
+ end
124
+
125
+ add_index "dorsale_billing_machine_quotation_lines", ["quotation_id"], name: "index_dorsale_billing_machine_quotation_lines_on_quotation_id"
126
+
127
+ create_table "dorsale_billing_machine_quotations", force: :cascade do |t|
128
+ t.integer "customer_id"
129
+ t.string "customer_type"
130
+ t.integer "id_card_id"
131
+ t.integer "payment_term_id"
132
+ t.date "date"
133
+ t.string "label"
134
+ t.decimal "total_duty"
135
+ t.decimal "vat_amount"
136
+ t.decimal "total_all_taxes"
137
+ t.integer "unique_index"
138
+ t.decimal "vat_rate"
139
+ t.text "comments"
140
+ t.datetime "created_at", null: false
141
+ t.datetime "updated_at", null: false
142
+ t.date "expires_at"
143
+ t.string "tracking_id"
144
+ end
145
+
146
+ add_index "dorsale_billing_machine_quotations", ["customer_id"], name: "index_dorsale_billing_machine_quotations_on_customer_id"
147
+ add_index "dorsale_billing_machine_quotations", ["customer_type"], name: "index_dorsale_billing_machine_quotations_on_customer_type"
148
+ add_index "dorsale_billing_machine_quotations", ["id_card_id"], name: "index_dorsale_billing_machine_quotations_on_id_card_id"
149
+ add_index "dorsale_billing_machine_quotations", ["payment_term_id"], name: "index_dorsale_billing_machine_quotations_on_payment_term_id"
150
+
151
+ create_table "dorsale_comments", force: :cascade do |t|
29
152
  t.integer "user_id"
30
153
  t.string "user_type"
31
154
  t.integer "commentable_id"
@@ -35,4 +158,119 @@ ActiveRecord::Schema.define(version: 20150312083147) do
35
158
  t.datetime "updated_at", null: false
36
159
  end
37
160
 
161
+ create_table "dorsale_customer_vault_corporations", force: :cascade do |t|
162
+ t.string "name"
163
+ t.string "short_name"
164
+ t.string "email"
165
+ t.string "phone"
166
+ t.string "fax"
167
+ t.string "www"
168
+ t.string "legal_form"
169
+ t.integer "capital"
170
+ t.string "immatriculation_number_1"
171
+ t.string "immatriculation_number_2"
172
+ t.datetime "created_at", null: false
173
+ t.datetime "updated_at", null: false
174
+ end
175
+
176
+ create_table "dorsale_customer_vault_individuals", force: :cascade do |t|
177
+ t.string "first_name"
178
+ t.string "last_name"
179
+ t.string "short_name"
180
+ t.string "email"
181
+ t.string "title"
182
+ t.string "twitter"
183
+ t.string "www"
184
+ t.text "context"
185
+ t.string "phone"
186
+ t.string "fax"
187
+ t.string "mobile"
188
+ t.datetime "created_at", null: false
189
+ t.datetime "updated_at", null: false
190
+ end
191
+
192
+ create_table "dorsale_customer_vault_links", force: :cascade do |t|
193
+ t.string "title"
194
+ t.integer "alice_id"
195
+ t.string "alice_type"
196
+ t.integer "bob_id"
197
+ t.string "bob_type"
198
+ t.datetime "created_at", null: false
199
+ t.datetime "updated_at", null: false
200
+ end
201
+
202
+ add_index "dorsale_customer_vault_links", ["alice_id"], name: "index_dorsale_customer_vault_links_on_alice_id"
203
+ add_index "dorsale_customer_vault_links", ["alice_type"], name: "index_dorsale_customer_vault_links_on_alice_type"
204
+ add_index "dorsale_customer_vault_links", ["bob_id"], name: "index_dorsale_customer_vault_links_on_bob_id"
205
+ add_index "dorsale_customer_vault_links", ["bob_type"], name: "index_dorsale_customer_vault_links_on_bob_type"
206
+
207
+ create_table "dorsale_flyboy_folders", force: :cascade do |t|
208
+ t.integer "folderable_id"
209
+ t.string "folderable_type"
210
+ t.string "name"
211
+ t.text "description"
212
+ t.integer "progress"
213
+ t.string "status"
214
+ t.string "tracking"
215
+ t.integer "version"
216
+ t.datetime "created_at", null: false
217
+ t.datetime "updated_at", null: false
218
+ end
219
+
220
+ add_index "dorsale_flyboy_folders", ["folderable_id"], name: "index_dorsale_flyboy_folders_on_folderable_id"
221
+ add_index "dorsale_flyboy_folders", ["folderable_type"], name: "index_dorsale_flyboy_folders_on_folderable_type"
222
+
223
+ create_table "dorsale_flyboy_task_comments", force: :cascade do |t|
224
+ t.integer "task_id"
225
+ t.datetime "date"
226
+ t.text "description"
227
+ t.integer "progress"
228
+ t.datetime "created_at", null: false
229
+ t.datetime "updated_at", null: false
230
+ end
231
+
232
+ add_index "dorsale_flyboy_task_comments", ["task_id"], name: "index_dorsale_flyboy_task_comments_on_task_id"
233
+
234
+ create_table "dorsale_flyboy_tasks", force: :cascade do |t|
235
+ t.integer "taskable_id"
236
+ t.string "taskable_type"
237
+ t.string "name"
238
+ t.text "description"
239
+ t.integer "progress"
240
+ t.boolean "done"
241
+ t.date "term"
242
+ t.date "reminder"
243
+ t.datetime "created_at", null: false
244
+ t.datetime "updated_at", null: false
245
+ end
246
+
247
+ add_index "dorsale_flyboy_tasks", ["taskable_id"], name: "index_dorsale_flyboy_tasks_on_taskable_id"
248
+ add_index "dorsale_flyboy_tasks", ["taskable_type"], name: "index_dorsale_flyboy_tasks_on_taskable_type"
249
+
250
+ create_table "dummy_models", force: :cascade do |t|
251
+ t.string "name"
252
+ t.datetime "created_at", null: false
253
+ t.datetime "updated_at", null: false
254
+ end
255
+
256
+ create_table "taggings", force: :cascade do |t|
257
+ t.integer "tag_id"
258
+ t.integer "taggable_id"
259
+ t.string "taggable_type"
260
+ t.integer "tagger_id"
261
+ t.string "tagger_type"
262
+ t.string "context", limit: 128
263
+ t.datetime "created_at"
264
+ end
265
+
266
+ add_index "taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true
267
+ add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
268
+
269
+ create_table "tags", force: :cascade do |t|
270
+ t.string "name"
271
+ t.integer "taggings_count", default: 0
272
+ end
273
+
274
+ add_index "tags", ["name"], name: "index_tags_on_name", unique: true
275
+
38
276
  end
@@ -0,0 +1 @@
1
+ Dorsale::BillingMachine::IdCard.create!(id_card_name: "AGILiDEE", entity_name: "AGILiDEE")
Binary file
@@ -0,0 +1,227 @@
1
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+  (7.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.1ms) SELECT version FROM "schema_migrations"
7
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
8
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
9
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+  (0.1ms) SELECT version FROM "schema_migrations"
11
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
12
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14
+  (0.1ms) SELECT version FROM "schema_migrations"
15
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ Migrating to CreateDorsaleAddresses (20141010140200)
18
+  (0.1ms) begin transaction
19
+  (0.4ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "street_bis" varchar(255), "city" varchar(255), "zip" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
20
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141010140200"]]
21
+  (0.9ms) commit transaction
22
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+  (1.1ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "street_bis" varchar(255), "city" varchar(255), "zip" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
24
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
25
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
26
+  (0.1ms) SELECT version FROM "schema_migrations"
27
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141010140200')
28
+  (1.3ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "street_bis" varchar(255), "city" varchar(255), "zip" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
29
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
30
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
31
+  (0.1ms) SELECT version FROM "schema_migrations"
32
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141010140200')
33
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
+  (7.4ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "street_bis" varchar(255), "city" varchar(255), "zip" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
36
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
37
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38
+  (0.1ms) SELECT version FROM "schema_migrations"
39
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141010140200')
40
+  (7.4ms) CREATE TABLE "dorsale_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "street_bis" varchar(255), "city" varchar(255), "zip" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
41
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
42
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
43
+  (0.1ms) SELECT version FROM "schema_migrations"
44
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141010140200')
45
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
46
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
47
+
48
+
49
+ Started GET "/" for 127.0.0.1 at 2014-10-13 17:14:34 +0200
50
+ Processing by Rails::WelcomeController#index as HTML
51
+ Rendered /Users/benoit/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.10/lib/rails/templates/rails/welcome/index.html.erb (1.8ms)
52
+ Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
53
+
54
+
55
+ Started GET "/" for 127.0.0.1 at 2014-10-13 17:14:34 +0200
56
+ Processing by Rails::WelcomeController#index as HTML
57
+ Rendered /Users/benoit/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.10/lib/rails/templates/rails/welcome/index.html.erb (0.1ms)
58
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
59
+
60
+
61
+ Started GET "/dorsale/addresses" for 127.0.0.1 at 2014-10-13 17:14:40 +0200
62
+ Processing by Dorsale::AddressesController#index as HTML
63
+ Dorsale::Address Load (1.4ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses"
64
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/index.html.slim within layouts/application (46.0ms)
65
+ Completed 200 OK in 86ms (Views: 83.1ms | ActiveRecord: 1.4ms)
66
+
67
+
68
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-13 17:14:40 +0200
69
+
70
+
71
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-13 17:14:40 +0200
72
+
73
+
74
+ Started GET "/dorsale/addresses/new" for 127.0.0.1 at 2014-10-13 17:14:42 +0200
75
+ Processing by Dorsale::AddressesController#new as HTML
76
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/_form.html.slim (21.8ms)
77
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/new.html.slim within layouts/application (26.2ms)
78
+ Completed 200 OK in 30ms (Views: 29.0ms | ActiveRecord: 0.3ms)
79
+
80
+
81
+ Started POST "/dorsale/addresses" for 127.0.0.1 at 2014-10-13 17:14:56 +0200
82
+ Processing by Dorsale::AddressesController#create as HTML
83
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"V9MeeKJ8Y3Kf5PT++jKHJqqzvp5tU2r6cJTXt9hSvp4=", "address"=>{"street"=>"46 Avenue des Chartreux", "street_bis"=>"", "city"=>"Marseille", "zip"=>"13004", "country"=>"Marseille"}, "commit"=>"Save"}
84
+  (0.1ms) begin transaction
85
+ SQL (3.2ms) INSERT INTO "dorsale_addresses" ("city", "country", "created_at", "street", "street_bis", "updated_at", "zip") VALUES (?, ?, ?, ?, ?, ?, ?) [["city", "Marseille"], ["country", "Marseille"], ["created_at", Mon, 13 Oct 2014 15:14:56 UTC +00:00], ["street", "46 Avenue des Chartreux"], ["street_bis", ""], ["updated_at", Mon, 13 Oct 2014 15:14:56 UTC +00:00], ["zip", "13004"]]
86
+  (0.8ms) commit transaction
87
+ Redirected to http://localhost:3000/dorsale/addresses/1
88
+ Completed 302 Found in 8ms (ActiveRecord: 4.1ms)
89
+
90
+
91
+ Started GET "/dorsale/addresses/1" for 127.0.0.1 at 2014-10-13 17:14:56 +0200
92
+ Processing by Dorsale::AddressesController#show as HTML
93
+ Parameters: {"id"=>"1"}
94
+ Dorsale::Address Load (0.2ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses" WHERE "dorsale_addresses"."id" = ? LIMIT 1 [["id", "1"]]
95
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/show.html.slim within layouts/application (4.5ms)
96
+ Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.2ms)
97
+
98
+
99
+ Started GET "/dorsale/addresses" for 127.0.0.1 at 2014-10-13 17:14:58 +0200
100
+ Processing by Dorsale::AddressesController#index as HTML
101
+ Dorsale::Address Load (0.2ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses"
102
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/index.html.slim within layouts/application (2.0ms)
103
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.2ms)
104
+
105
+
106
+ Started GET "/" for 127.0.0.1 at 2014-10-14 11:43:18 +0200
107
+ Processing by Rails::WelcomeController#index as HTML
108
+ Rendered /Users/benoit/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.10/lib/rails/templates/rails/welcome/index.html.erb (1.3ms)
109
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
110
+
111
+
112
+ Started GET "/dorsale/addresses" for 127.0.0.1 at 2014-10-14 11:43:22 +0200
113
+ Processing by Dorsale::AddressesController#index as HTML
114
+ Dorsale::Address Load (1.5ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses"
115
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/index.html.slim within layouts/application (56.0ms)
116
+ Completed 200 OK in 89ms (Views: 85.7ms | ActiveRecord: 1.7ms)
117
+
118
+
119
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-14 11:43:22 +0200
120
+
121
+
122
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-14 11:43:22 +0200
123
+
124
+
125
+ Started GET "/dorsale/addresses/1/edit" for 127.0.0.1 at 2014-10-14 11:43:24 +0200
126
+ Processing by Dorsale::AddressesController#edit as HTML
127
+ Parameters: {"id"=>"1"}
128
+ Dorsale::Address Load (0.3ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses" WHERE "dorsale_addresses"."id" = ? LIMIT 1 [["id", "1"]]
129
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/_nested_form.html.slim (12.1ms)
130
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/_form.html.slim (18.8ms)
131
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/edit.html.slim within layouts/application (24.1ms)
132
+ Completed 200 OK in 36ms (Views: 34.3ms | ActiveRecord: 0.3ms)
133
+
134
+
135
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-14 11:43:24 +0200
136
+
137
+
138
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-14 11:43:24 +0200
139
+
140
+
141
+ Started PATCH "/dorsale/addresses/1" for 127.0.0.1 at 2014-10-14 11:43:29 +0200
142
+ Processing by Dorsale::AddressesController#update as HTML
143
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BWC1t0kpOiKtco+jM/XtMbBa13FAmDy5Mv87gABSekk=", "address"=>{"street"=>"46 Avenue des Chartreux", "street_bis"=>"bis", "zip"=>"13004", "city"=>"Marseille", "country"=>"Marseille"}, "commit"=>"Save", "id"=>"1"}
144
+ Dorsale::Address Load (0.2ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses" WHERE "dorsale_addresses"."id" = ? LIMIT 1 [["id", "1"]]
145
+  (0.1ms) begin transaction
146
+ SQL (2.7ms) UPDATE "dorsale_addresses" SET "street_bis" = ?, "updated_at" = ? WHERE "dorsale_addresses"."id" = 1 [["street_bis", "bis"], ["updated_at", Tue, 14 Oct 2014 09:43:29 UTC +00:00]]
147
+  (0.8ms) commit transaction
148
+ Redirected to http://localhost:3000/dorsale/addresses/1
149
+ Completed 302 Found in 10ms (ActiveRecord: 3.8ms)
150
+
151
+
152
+ Started GET "/dorsale/addresses/1" for 127.0.0.1 at 2014-10-14 11:43:29 +0200
153
+ Processing by Dorsale::AddressesController#show as HTML
154
+ Parameters: {"id"=>"1"}
155
+ Dorsale::Address Load (0.1ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses" WHERE "dorsale_addresses"."id" = ? LIMIT 1 [["id", "1"]]
156
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/show.html.slim within layouts/application (4.4ms)
157
+ Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms)
158
+
159
+
160
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-14 11:43:29 +0200
161
+
162
+
163
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-14 11:43:29 +0200
164
+
165
+
166
+ Started GET "/dorsale/addresses" for 127.0.0.1 at 2014-10-14 11:43:31 +0200
167
+ Processing by Dorsale::AddressesController#index as HTML
168
+ Dorsale::Address Load (0.2ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses"
169
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/index.html.slim within layouts/application (1.8ms)
170
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.2ms)
171
+
172
+
173
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-14 11:43:31 +0200
174
+
175
+
176
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-14 11:43:31 +0200
177
+
178
+
179
+ Started GET "/dorsale/addresses/new" for 127.0.0.1 at 2014-10-14 11:43:32 +0200
180
+ Processing by Dorsale::AddressesController#new as HTML
181
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/_nested_form.html.slim (2.0ms)
182
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/_form.html.slim (4.1ms)
183
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/new.html.slim within layouts/application (7.6ms)
184
+ Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
185
+
186
+
187
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-14 11:43:32 +0200
188
+
189
+
190
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-14 11:43:32 +0200
191
+
192
+
193
+ Started POST "/dorsale/addresses" for 127.0.0.1 at 2014-10-14 11:43:46 +0200
194
+ Processing by Dorsale::AddressesController#create as HTML
195
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BWC1t0kpOiKtco+jM/XtMbBa13FAmDy5Mv87gABSekk=", "address"=>{"street"=>"ici et maintenant", "street_bis"=>"", "zip"=>"", "city"=>"oui oui city", "country"=>""}, "commit"=>"Save"}
196
+  (0.1ms) begin transaction
197
+ SQL (7.1ms) INSERT INTO "dorsale_addresses" ("city", "country", "created_at", "street", "street_bis", "updated_at", "zip") VALUES (?, ?, ?, ?, ?, ?, ?) [["city", "oui oui city"], ["country", ""], ["created_at", Tue, 14 Oct 2014 09:43:46 UTC +00:00], ["street", "ici et maintenant"], ["street_bis", ""], ["updated_at", Tue, 14 Oct 2014 09:43:46 UTC +00:00], ["zip", ""]]
198
+  (0.9ms) commit transaction
199
+ Redirected to http://localhost:3000/dorsale/addresses/2
200
+ Completed 302 Found in 12ms (ActiveRecord: 8.0ms)
201
+
202
+
203
+ Started GET "/dorsale/addresses/2" for 127.0.0.1 at 2014-10-14 11:43:46 +0200
204
+ Processing by Dorsale::AddressesController#show as HTML
205
+ Parameters: {"id"=>"2"}
206
+ Dorsale::Address Load (0.1ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses" WHERE "dorsale_addresses"."id" = ? LIMIT 1 [["id", "2"]]
207
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/show.html.slim within layouts/application (0.9ms)
208
+ Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
209
+
210
+
211
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-14 11:43:46 +0200
212
+
213
+
214
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-14 11:43:46 +0200
215
+
216
+
217
+ Started GET "/dorsale/addresses" for 127.0.0.1 at 2014-10-14 11:43:50 +0200
218
+ Processing by Dorsale::AddressesController#index as HTML
219
+ Dorsale::Address Load (0.2ms) SELECT "dorsale_addresses".* FROM "dorsale_addresses"
220
+ Rendered /Users/benoit/Sources/dorsale/app/views/dorsale/addresses/index.html.slim within layouts/application (2.5ms)
221
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.2ms)
222
+
223
+
224
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-14 11:43:50 +0200
225
+
226
+
227
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-14 11:43:50 +0200