storytime-admin 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/storytime_admin/application_controller.rb +3 -3
- data/app/views/storytime_admin/application/_headers.html.haml +2 -1
- data/app/views/storytime_admin/application/_row.html.haml +2 -1
- data/lib/generators/storytime_admin/resource/templates/controller.rb +5 -5
- data/lib/storytime_admin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4034243444693388c7c42a2c1d46ebfb8dcfadf2
|
4
|
+
data.tar.gz: 8de839ef143272a9cd9ad59bb431779d3dab2cf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d8878001d19386475cd970de8343eabb6e3c2b2b497601ae0e9ebb711416cd4e8d2dddc7838ad5fb646f5511222e1ecf7447d7123ac3e7b557f66c153ae185
|
7
|
+
data.tar.gz: 658e530a9b76abe7350677c3e11a9477fa94cca222829e145268a6333f8ff8df73219ba1999152aa94d6643183678ea9765e13a7e482856d6055c6401e023935
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
- index_attr.each do |attribute|
|
2
|
+
%th= attribute.titleize
|
@@ -1 +1,2 @@
|
|
1
|
-
|
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
|
33
|
-
###
|
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
|
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
|
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
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|