storytime-admin 0.0.1 → 0.1.0

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: d9c62de1f633ed8817a17760d7d690146a43e2f2
4
- data.tar.gz: 00788717ff5b71fe2bb4c75180004b8c5e681c71
3
+ metadata.gz: 4034243444693388c7c42a2c1d46ebfb8dcfadf2
4
+ data.tar.gz: 8de839ef143272a9cd9ad59bb431779d3dab2cf3
5
5
  SHA512:
6
- metadata.gz: 0e6f9695ee3d82cd8eb436274f781b102af90ed6db56d50eb070d78db69c8c410bcf7469ae7857561fa01e689899bc66d5e337a76561d0921f4804c893934658
7
- data.tar.gz: 0aa56427fb0ee7028b8b5a12790b204abc30a01c57879a309d491ba30654e9414729098a05f77e5ee3dc0990df31221cf0c43cb71fabac1c02050df9fdb8dd3a
6
+ metadata.gz: e0d8878001d19386475cd970de8343eabb6e3c2b2b497601ae0e9ebb711416cd4e8d2dddc7838ad5fb646f5511222e1ecf7447d7123ac3e7b557f66c153ae185
7
+ data.tar.gz: 658e530a9b76abe7350677c3e11a9477fa94cca222829e145268a6333f8ff8df73219ba1999152aa94d6643183678ea9765e13a7e482856d6055c6401e023935
@@ -76,11 +76,11 @@ module StorytimeAdmin
76
76
 
77
77
  def index_attr
78
78
  if attributes.include?("title")
79
- "title"
79
+ ["title"]
80
80
  elsif attributes.include?("name")
81
- "name"
81
+ ["name"]
82
82
  else
83
- "id"
83
+ ["id"]
84
84
  end
85
85
  end
86
86
 
@@ -1 +1,2 @@
1
- %th= index_attr.titleize
1
+ - index_attr.each do |attribute|
2
+ %th= attribute.titleize
@@ -1 +1,2 @@
1
- %td= object.send(index_attr)
1
+ - index_attr.each do |attribute|
2
+ %td= object.send(attribute)
@@ -29,16 +29,16 @@ module StorytimeAdmin
29
29
 
30
30
  ##########################################
31
31
  ### If you are using the default index
32
- ### template, this controls which attribute
33
- ### is used in the table
32
+ ### template, this controls which attributes
33
+ ### are used in the table
34
34
  ##########################################
35
35
  # def index_attr
36
36
  # if attributes.include?("title")
37
- # "title"
37
+ # ["title"]
38
38
  # elsif attributes.include?("name")
39
- # "name"
39
+ # ["name"]
40
40
  # else
41
- # "id"
41
+ # ["id"]
42
42
  # end
43
43
  # end
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module StorytimeAdmin
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storytime-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Van Der Beek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails