effective_orders 5.7.0 → 5.7.3

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: 10e6548b3a84173f5f3f45a9affc25399639d63ede24fe528ff209713567dee5
4
- data.tar.gz: 54a7feb0ef6f669ab1d2fe01e5ec2b0097bde754653575c40b7806ce9ca26ddb
3
+ metadata.gz: ef5f10f02590e466ed6cc0cb1ed6f122f21590b19163b46e7e8f8bb808014b68
4
+ data.tar.gz: 3fac9595e0313c7f708a7f326b13f247f675fb331262f317f2677526277e98ff
5
5
  SHA512:
6
- metadata.gz: ea11b4ac3dfe6d4091a89761fbc434367c432b91ee0ae2e2f18b8d2fc79672e26a1488123f4214589ed1b7be8f2229b41d6df362c73a60d379dacd83f268f91d
7
- data.tar.gz: 18632a2434b9081cad43dac618ce37785ac0fe1aa6a2770e09df9ce6a0e016f66c70b31f8b8d8db99a6920f04a3f7634524bcee1e13a1473acce6b4b7bb17c3b
6
+ metadata.gz: 0f890bdb73192bb673dc8a1f07ac6f2102335b62ea1834c19e1d4a5c1e9eaca779f862487f78a217d9cc8230cf348bfc3fdb42a4a2f376ab0d4e601b41bf8453
7
+ data.tar.gz: f181f71e581314b98cddff5e9ccc4f2bb5f44447a9cd693bdea918a57e787b46af0b10d85b886a24359e5ea8aba78362fc5527216cd9edd7327bc1fd9939cb81
@@ -1,8 +1,10 @@
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) unless Rails.env.test?
5
+
6
+ = f.select :user_id, current_user.class.all, label: 'Buyer', required: true,
7
+ ajax_url: ajax_url, hint: 'The user that should purchase this order.'
6
8
 
7
9
  = f.email_cc_field :cc, hint: "Cc the above on any emailed receipts or payment requests."
8
10
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '5.7.0'.freeze
2
+ VERSION = '5.7.3'.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.7.0
4
+ version: 5.7.3
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