zuora_connect 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7133e52b769ed5103e054d5fe006d00b46e646d
4
- data.tar.gz: 7df455a0d9645ae18ccde7b6ba88a25d590c8569
3
+ metadata.gz: ec89e082f6b42d2e252b5cbee4dec071f708e044
4
+ data.tar.gz: b9643139f3048b367ecda3e619331286e26fd9ab
5
5
  SHA512:
6
- metadata.gz: ca76ee31ad1c8ac1b7b5caac21b472692358de4a955d1dc6b96df774acd4ff965babfab0363743e54e8510225723681c380e994fb81d15728a5bcfa67bd83924
7
- data.tar.gz: e8afa38464827018b889720a75dd1e3bfc31cda81a13cbb9c9b4ca36a6379ac97052cd9c7f3cdef39806e47fd25c2d2173e336c89d15ac281152dba90fc5e152
6
+ metadata.gz: 96d0e2e0a9aa5204a94aea8551ccc9207d6b4869bdf10d9c39a7bf14d44fd6348cb9a91ff7fc81370a2ecf5469f137e76bf317c23b1d1353fffb1be594895208
7
+ data.tar.gz: 620e85ff016f522bd5f53700c035ea42c7574b8a5ed7180a936647726224a57dcb97986431641219a3cb199485f342ae42449411074b45335a262c47e098cc2a
@@ -2,10 +2,11 @@ class DatatableGenerator < Rails::Generators::NamedBase
2
2
 
3
3
  def create_datatable_file
4
4
  columns = Object.const_defined?("#{class_name}") ? "#{class_name}".constantize.send("column_names") : []
5
- column_string = ""
5
+ column_data = []
6
6
  columns.each do |col|
7
- column_string << "\"#{plural_name}\" => #{plural_name.singularize}.#{col},"
7
+ column_data << "\"#{plural_name}\" => #{plural_name.singularize}.#{col}"
8
8
  end
9
+ puts column_data
9
10
 
10
11
  create_file "app/datatables/#{file_name}_datatable.rb", <<-FILE
11
12
  class #{class_name}Datatable
@@ -35,7 +36,7 @@ private
35
36
  DT_RowId: product.id.to_s,
36
37
  DT_RowClass: nil,
37
38
  DT_RowAttr: { },
38
- #{column_string}
39
+ #{column_data.join(",")}
39
40
  #{plural_name}_actions: actions(#{plural_name.singularize}),
40
41
  }
41
42
  end
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team