five-two-nw-olivander 0.1.2.11 → 0.1.2.12

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
  SHA256:
3
- metadata.gz: 646461db1504efbb35c466f41a39995598c41af6379f0c4e774604df8fe06751
4
- data.tar.gz: 87e8135af0ceb0082d12413cd37b81aab648140ab485f5fb3ed2b0a208061c43
3
+ metadata.gz: 95371b71e1db9de5a935b1ecf9834a1b802a5a71c8960bd876a0c6e22ed849e5
4
+ data.tar.gz: f336a7acda0c1918f4a4a7d0dfdd672e4bdf6d68464172046b49539a27b573ef
5
5
  SHA512:
6
- metadata.gz: 8d531d6cca6f76ee6fc63b5cff0cee413b65b2af44f2e61c4a49875e5b513303b7be40ffed8f9580c54a59934d5196bc64cf5bf947490912f42e36354cb88e11
7
- data.tar.gz: b010327c42b8b6d5fe4b54d8d7b5e8a327922bb31c0ab3fef168033dec98a654b9a46a91a15ff2d3221f67798172494c9d626a879d067f617bc77a0c7c196eca
6
+ metadata.gz: 6eaa2e44f71c887a9879f76a8516c509b27579ae6e5597fcccdca9f92947ef6ecf14b18a0386e19f6cb04732c7ad05b19b5d1f65464937e56deb7b3037f42967
7
+ data.tar.gz: a5123ae21498c52619c763866f930b40465efb1387010a71d92abdb7dea67d7664725f530d4d46e4adb6b86fd9ae0342a0f996a64bfcbcbd1612c8479105707b
@@ -18,7 +18,7 @@ module Olivander
18
18
  def self.auto_datatable(klazz, link_path: nil, only: [], except: [], hide: [], show: [])
19
19
  Rails.logger.debug "initializing datatable for #{klazz}"
20
20
 
21
- attributes = klazz.new.attributes.select{ |x| x[0] }
21
+ attributes = klazz.new.attributes.collect{ |x| x[0] }
22
22
  attributes &&= only if only.size.positive?
23
23
  attributes -= except if except.size.positive?
24
24
 
@@ -29,11 +29,8 @@ module Olivander
29
29
  end
30
30
 
31
31
  datatable do
32
- puts 'and also too'
33
32
  bulk_actions_col
34
33
  attributes.each do |key|
35
- puts "handling key: #{key}"
36
-
37
34
  sym = key.gsub('_id', '').to_sym
38
35
  visible = show.include?(key) || !(default_hidden.include?(key) || hide.include?(key))
39
36
  if link_path.present? && sym == :id
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = "0.1.2.11"
2
+ VERSION = "0.1.2.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.11
4
+ version: 0.1.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis