dorsale 3.14.5 → 3.14.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64ed8f65abd6ae12d960fe88cc17c321b7838660d09d206bc79f7b234e984ac3
4
- data.tar.gz: 0247c7a10d86060d9f869e0659254506de509de49e0d591e086f4a750f7db739
3
+ metadata.gz: '081493fb9ef6491659b1f5f841cda9e308f37c576479167e50ea4fb9a2c49bdc'
4
+ data.tar.gz: e7c0faea95b2a53acb0dbc1df0dd066e8603fa523ca8417a2347a5d739188c9a
5
5
  SHA512:
6
- metadata.gz: 734d3ea40626c063c7afe6c713f7e43d4934b27554a513898eb072cf9222ac48b3159f546de818c6c436367dbc86fef4f63c2b954892db24c5b5910aab0c1a51
7
- data.tar.gz: e73667d0999d746a7d5dfb16ab07abb77c2dae0a410c98d0b0b621d16b6d646fcd45c3e8a1a3ccc31f4cf88068b8d3b5cd754204d3ef8921e35ec76f5b552491
6
+ metadata.gz: 90b086e74d0b9df47a8ee1c211a30ea153ae898f4a0acc64a4b9934ebfd8eddd6ef77065a0f2f0ace442f3adad78ac3dc3d5fe014faa776d6932491a739fac3b
7
+ data.tar.gz: '079cb9b8ed02c3a257f11f99c6dc33ac556a77760a642bd0aa19252dc18f199d9c0e9c391a586d303e747a541dfe6ddc2cb996ad2b9b096cc3c8c9069f31b1ce'
@@ -1,6 +1,8 @@
1
1
  # Changelog
2
2
 
3
3
  ## Next version
4
+ ## 3.14.6
5
+ - Small changes on BM policy check
4
6
 
5
7
  ## 3.14.5
6
8
  - Restore test files in gemspec
@@ -75,9 +75,11 @@ class Dorsale::BillingMachine::InvoicesController < ::Dorsale::BillingMachine::A
75
75
 
76
76
  def update
77
77
  # callback in BillingMachine::ApplicationController
78
+ @invoice.attributes = invoice_params_for_update
79
+
78
80
  authorize @invoice, :update?
79
81
 
80
- if @invoice.update(invoice_params_for_update)
82
+ if @invoice.save
81
83
  Dorsale::BillingMachine::PdfFileGenerator.(@invoice)
82
84
  flash[:notice] = t("messages.invoices.update_ok")
83
85
  redirect_to default_back_url
@@ -65,9 +65,11 @@ class Dorsale::BillingMachine::QuotationsController < ::Dorsale::BillingMachine:
65
65
 
66
66
  def update
67
67
  # callback in BillingMachine::ApplicationController
68
+ @quotation.attributes = quotation_params_for_update
69
+
68
70
  authorize @quotation, :update?
69
71
 
70
- if @quotation.update(quotation_params_for_update)
72
+ if @quotation.save
71
73
  Dorsale::BillingMachine::PdfFileGenerator.(@quotation)
72
74
  flash[:notice] = t("messages.quotations.update_ok")
73
75
  redirect_to default_back_url
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "3.14.5"
2
+ VERSION = "3.14.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.5
4
+ version: 3.14.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails