effective_orders 5.6.2 → 5.7.2

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: 4e419a31818cf5abba11e1330c5cf38e7637f144d9eacade387f919de7433973
4
- data.tar.gz: 12a61662d772982f6ddff6f00bd990dfdab017a33ce011b55caf7f4507715010
3
+ metadata.gz: 15f4d6205ec47b10c390ff0a4b76a8452264c3d2b6821be442e6cab1c80c8617
4
+ data.tar.gz: '08ea2085c601ad7ce4e72976057a4e1d1159b8ad336550ff959a7606746b2cad'
5
5
  SHA512:
6
- metadata.gz: abc379d14277eb75eef1c315ad05d49bbd801211c8f4781951249421c6433f9e1fef5b5ff5e0348859ccab4a185bc4439ae0a06f0ba8e1bdc9b6bf9199f912ce
7
- data.tar.gz: b189c07ee57a22ba4f3fb314da7078b7cf7d8f9d25ab85f3d37e6be74c8924cdc6ccac516053bf2ee0bbc182f8c80f1b4b82505cdd310a6d6bde02b0fff17dd2
6
+ metadata.gz: 7dc87bae4591d52530cbad8a775dbb8a5e5fa60c6a543f1499f610b46f05b1e1d81ad81cb3aa95d6e6635966e4927590f6f5a37e862ef5567e2381ef3acae9d2
7
+ data.tar.gz: '0793575684a0b0bcd38470e5ea186da9089dda3f3ce18b939a24beb5f7af2c7c2a8dbacf78d9e72de64564ceaa299d5ee75f758978c2d65a291567d8395056d7'
@@ -1,8 +1,11 @@
1
1
  = effective_form_with(model: [:admin, order], engine: true) do |f|
2
2
  = f.hidden_field :user_type, value: (f.object.user || current_user).class.name
3
3
 
4
- - collection = (@users || current_user.class.try(:sorted) || current_user.class.all)
5
- = f.select :user_id, collection, label: 'Buyer', required: true, hint: 'The user that should purchase this order.'
4
+ - ajax_url = (@select2_ajax_path || effective_resources.users_admin_select2_ajax_index_path)
5
+
6
+ = f.select :user_id, current_user.class.all, label: 'Buyer', required: true,
7
+ ajax_url: ajax_url,
8
+ hint: 'The user that should purchase this order.'
6
9
 
7
10
  = f.email_cc_field :cc, hint: "Cc the above on any emailed receipts or payment requests."
8
11
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '5.6.2'.freeze
2
+ VERSION = '5.7.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.2
4
+ version: 5.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-26 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails