zuora_connect 1.1.6 → 1.1.7

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: b3afb0e11538d62651d97760f0d252ba3fe91ef2
4
- data.tar.gz: 9d2fb00d613b3fb2dc78c80d599b2aaa70ad7175
3
+ metadata.gz: 5158cb6026066f45098446c7d9226f003fe2ca24
4
+ data.tar.gz: f7a393c91d5c2208bd075c2c84d36ea9a10045b5
5
5
  SHA512:
6
- metadata.gz: 476dbe45926524beaf76d7babd2a648998ad1134d7e61bec7696e3e5f228a0d4512e624ce3274ecea36c668d1761c72d023e68693d33704ece039667e1c3e308
7
- data.tar.gz: e48945e3487df67217157d0f662ff79adb26637f6d6beaee6dd75269a54ac3622a36003b21f07ef47248b7c28c3c1e124fab5f80b7cef644c892e17e5880edc7
6
+ metadata.gz: 7cca7ac5556ec375ba6842a63d4daf871c703d2bb6efc656e9a69e928551dbc94999b756e0cdf00fa4a5b3d22e8e08a2cf927e94e8101433ec605439345b8e51
7
+ data.tar.gz: 0a35aacefbe518b0e23568cf532a8c7abb7b3120a9b737e8ab60e6b47eacc5e0e846ea63842f485f43a4eb12db9bda80312b8955f91d0423504503f587bc0b11
@@ -8,7 +8,7 @@ class DatatableGenerator < Rails::Generators::NamedBase
8
8
  configuration = YAML::load(IO.read('config/database.yml'))
9
9
  ActiveRecord::Base.establish_connection(configuration['development'])
10
10
 
11
- columns = Object.const_defined?("#{class_name}") ? "#{class_name}".constantize.send("column_names") : []
11
+ columns = "#{class_name}".constantize.send("column_names")
12
12
  column_data = []
13
13
  columns.each do |col|
14
14
  column_data << "\"#{plural_name}\" => #{plural_name.singularize}.#{col}"
@@ -43,7 +43,7 @@ private
43
43
  DT_RowId: product.id.to_s,
44
44
  DT_RowClass: nil,
45
45
  DT_RowAttr: { },
46
- #{column_data.join(",")}
46
+ #{column_data.join(",\n\t\t\t\t")},
47
47
  #{plural_name}_actions: actions(#{plural_name.singularize}),
48
48
  }
49
49
  end
File without changes
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
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.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
@@ -146,6 +146,7 @@ files:
146
146
  - db/migrate/20170131211919_add_sessions_table.rb
147
147
  - lib/generators/datatable/USAGE
148
148
  - lib/generators/datatable/datatable_generator.rb
149
+ - lib/generators/datatable/templates/datatable.rb
149
150
  - lib/tasks/zuora_connect_tasks.rake
150
151
  - lib/zuora_connect.rb
151
152
  - lib/zuora_connect/configuration.rb