solidus_bling 3.3.0 → 3.3.1

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: b4380e897eb442c1f36daf7439254c9e3a185cb869cd6ac2ce2eebd0076cf7b9
4
- data.tar.gz: e9998b5323e6303c5a5b56c3a1efbad63f601cb9a03ce34634a547547edf90b4
3
+ metadata.gz: a518315c339e59749416c354476f5074b785e5f6221aa2f85f48ff97589090bf
4
+ data.tar.gz: 39d8b9d853e301213aa05996f618537c6348e77d7f9d3bb93e911db04540a45d
5
5
  SHA512:
6
- metadata.gz: fdd4b72cda897908a348eb4e3b9958898c3e95dcfa9771f960724d66373a440dc0b335f8d37b95908abb873b1a9383496d29fe9eda350a313236011b8bb91ff2
7
- data.tar.gz: b395208bca62687613fe6aa0bb333b537837c96439e723751e84e2aa48114875f65ec82831590653b58dd2f73b6f2d4f1238e2fc6e2c2bcc575be8bb47b352af
6
+ metadata.gz: 77d81b06264164cb160cb1c34a104235d654143d95f63d1ae1e8f7a4cdda3c51850b671c2d7da91556301be365e9cf8b10b21af8007a390e23449d30bd06b4df
7
+ data.tar.gz: 1bfea6fd4602f7602430750b32510c86ea91f00807c1906b997ae7a020912d270f170fcd9a40878d4f7e8978f8a4e4beada389a1308269bce53365a50b04a29c
@@ -5,7 +5,7 @@ module Spree
5
5
  before_action :set_order, only: [:edit, :update]
6
6
 
7
7
  def edit
8
- @sellers = ::SolidusBling::Seller.all.pluck(:name, :id)
8
+ @sellers = ::SolidusBling::Seller.all.order(:name)
9
9
  end
10
10
 
11
11
  def update
@@ -7,8 +7,7 @@
7
7
  <fieldset class="no-border-bottom">
8
8
  <legend>Vendedor</legend>
9
9
  <%= form_with model: @order, url: admin_orders_update_seller_path(@order) do |form| %>
10
- <%= form.select :seller_id, @sellers, { selected: @order.solidus_bling_seller_id }, class:"custom-select fullwidth" %>
11
-
10
+ <%= form.select :seller_id, @sellers.pluck(:name, :id), { selected: @order.solidus_bling_seller_id || @sellers.default&.id }, class:"custom-select fullwidth" %>
12
11
  <div class="form-buttons filter-actions actions" data-hook="buttons">
13
12
  <%= form.submit t('spree.actions.update'), class: 'btn btn-primary mt-4' %>
14
13
  </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBling
4
- VERSION = "3.3.0"
4
+ VERSION = "3.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_bling
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamilton Tumenas Borges
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-19 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -86,7 +86,7 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2.7'
89
- description:
89
+ description:
90
90
  email: hamiltontubo@gmail.com
91
91
  executables: []
92
92
  extensions: []
@@ -163,7 +163,7 @@ metadata:
163
163
  homepage_uri: https://github.com/hamiltontborges/solidus_bling#readme
164
164
  source_code_uri: https://github.com/hamiltontborges/solidus_bling
165
165
  changelog_uri: https://github.com/hamiltontborges/solidus_bling/blob/master/CHANGELOG.md
166
- post_install_message:
166
+ post_install_message:
167
167
  rdoc_options: []
168
168
  require_paths:
169
169
  - lib
@@ -181,8 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.4.6
185
- signing_key:
184
+ rubygems_version: 3.5.3
185
+ signing_key:
186
186
  specification_version: 4
187
187
  summary: Solidus extension to integrate with the Bling
188
188
  test_files: []