polymorphic_render 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fef33e94e90185f76a4f7c56a6ed55b334dbaeb8
4
- data.tar.gz: 85998c796d4bad841a0e6519f6324f584edca57a
3
+ metadata.gz: 14731099d4f17a9ea2cc030dcfd544ccde47f10e
4
+ data.tar.gz: 942a5e4d932dbab32f31ff35d61862a693c26f0a
5
5
  SHA512:
6
- metadata.gz: e8e4acbb2cbe0969d2944e7a515dbc099d7d533883ac1bd16d6074bd2912fe5ece94c1d53a8332c6a1c83210ed2178371a700e476aad2584b063c0fe2c2ffa03
7
- data.tar.gz: 9973f6cc43851e3553e9f8278f91fe3ee2ef39c39d9e3525a7fa2e5c70874f2a84e4469c34ff32a06aacb8c99762a27c69c9b8d6575578350eb7a1b6e5c201a5
6
+ metadata.gz: e81afe5ee7ad1c429b6aa8f0dc60078b54e30a9ba795d7ee4c7212142d8ac31a9db3b3a1ef97bb89c9c7b8ad40236b98c6ceb84bf8a6da1906fac298f46424f8
7
+ data.tar.gz: 617b1542db7002bba88ef79592c9604223b999c17a3fd72f552c1ac7b57269a1e43b5e9a6e305976d29a2ada4dc48a4137dc8a77d3b0b880696f7f7046968884
data/README.md CHANGED
@@ -1,6 +1,15 @@
1
1
  PolymorphicRender
2
2
  =================
3
3
 
4
+ Installing
5
+ ----------
6
+
7
+ Add in your gemfile
8
+
9
+ ```ruby
10
+ gem 'polymorphic_render'
11
+ ```
12
+
4
13
  Using
5
14
  -----
6
15
 
@@ -33,6 +42,16 @@ But if you write:
33
42
 
34
43
  It renders `views/models/_model_admin` partial and passes `model` local variable into.
35
44
 
45
+ Array can be passed as second parameter:
46
+
47
+ ```haml
48
+ = polymorphic_render @model, [:super, :admin]
49
+ -# or
50
+ = polymorphic_render @models, [:super, :admin]
51
+ ```
52
+
53
+ It renders `views/models/_model_super_admin` partial and passes `model` local variable into.
54
+
36
55
  When it's useful?
37
56
  -----------------
38
57
 
@@ -2,7 +2,7 @@ module PolymorphicRender
2
2
  module ApplicationHelper
3
3
  def polymorphic_render(resource, suffix = nil)
4
4
  if resource.is_a? ActiveRecord::Base
5
- path = [resource.to_partial_path, suffix.presence].compact.join('_')
5
+ path = [resource.to_partial_path, *Array(suffix)].select(&:present?).join('_')
6
6
  name = File.basename(resource.to_partial_path)
7
7
  render partial: path, object: resource, as: name
8
8
  else
@@ -1,3 +1,3 @@
1
1
  module PolymorphicRender
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -0,0 +1 @@
1
+ Destroy: <%= post.title %>
Binary file
Binary file
@@ -1,14 +1,5 @@
1
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePosts (20140303085238)
5
-  (0.1ms) begin transaction
6
-  (1.1ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140303085238"]]
8
-  (1.1ms) commit transaction
9
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
-  (1.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
11
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13
-  (0.2ms) SELECT version FROM "schema_migrations"
14
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303085238')
1
+  (1.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
2
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+  (0.1ms) SELECT version FROM "schema_migrations"
5
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303085238')
@@ -1,203 +1,314 @@
1
-  (0.3ms) begin transaction
2
- ---------------------------------
3
- PolymorphicRenderTest: test_truth
4
- ---------------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.3ms) begin transaction
7
- ---------------------------------
8
- PolymorphicRenderTest: test_truth
9
- ---------------------------------
10
-  (0.1ms) rollback transaction
11
-  (0.3ms) begin transaction
1
+  (0.2ms) begin transaction
2
+ ------------------------------------------------------------------------------
3
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_collection_rendering
4
+ ------------------------------------------------------------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+ -------------------------------------------------------------------
8
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_rendering
9
+ -------------------------------------------------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+ --------------------------------------------------------------------------
13
+ PolymorphicRender::ApplicationHelperTest: test_simple_collection_rendering
14
+ --------------------------------------------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.0ms) begin transaction
12
17
  ---------------------------------------------------------------
13
18
  PolymorphicRender::ApplicationHelperTest: test_simple_rendering
14
19
  ---------------------------------------------------------------
15
20
   (0.1ms) rollback transaction
16
-  (0.1ms) begin transaction
21
+  (0.0ms) begin transaction
17
22
  ---------------------------------
18
23
  PolymorphicRenderTest: test_truth
19
24
  ---------------------------------
20
-  (0.1ms) rollback transaction
25
+  (0.0ms) rollback transaction
21
26
   (0.3ms) begin transaction
27
+ ------------------------------------------------------------------------------
28
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_collection_rendering
29
+ ------------------------------------------------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+ -------------------------------------------------------------------
33
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_rendering
34
+ -------------------------------------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ --------------------------------------------------------------------------
38
+ PolymorphicRender::ApplicationHelperTest: test_simple_collection_rendering
39
+ --------------------------------------------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.0ms) begin transaction
22
42
  ---------------------------------------------------------------
23
43
  PolymorphicRender::ApplicationHelperTest: test_simple_rendering
24
44
  ---------------------------------------------------------------
25
-  (0.1ms) rollback transaction
26
-  (0.1ms) begin transaction
45
+  (0.0ms) rollback transaction
46
+  (0.0ms) begin transaction
27
47
  ---------------------------------
28
48
  PolymorphicRenderTest: test_truth
29
49
  ---------------------------------
30
-  (0.1ms) rollback transaction
31
-  (0.6ms) begin transaction
32
- ---------------------------------------------------------------
33
- PolymorphicRender::ApplicationHelperTest: test_simple_rendering
34
- ---------------------------------------------------------------
35
-  (0.9ms) SAVEPOINT active_record_1
36
- SQL (7.6ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:02:49 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:02:49 UTC +00:00]]
50
+  (0.0ms) rollback transaction
51
+  (0.3ms) begin transaction
52
+ ------------------------------------------------------------------------------
53
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_collection_rendering
54
+ ------------------------------------------------------------------------------
55
+  (0.0ms) SAVEPOINT active_record_1
56
+ SQL (2.1ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:22 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 08:59:22 UTC +00:00]]
57
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58
+  (0.0ms) SAVEPOINT active_record_1
59
+ SQL (0.8ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:22 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 08:59:22 UTC +00:00]]
60
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
62
+ Rendered posts/_post_admin.html.erb (0.5ms)
63
+ Rendered posts/_post_admin.html.erb (0.1ms)
64
+  (1.5ms) rollback transaction
65
+  (0.1ms) begin transaction
66
+ -------------------------------------------------------------------
67
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_rendering
68
+ -------------------------------------------------------------------
69
+  (0.1ms) SAVEPOINT active_record_1
70
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00]]
71
+  (0.1ms) RELEASE SAVEPOINT active_record_1
72
+  (0.0ms) SAVEPOINT active_record_1
73
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00]]
37
74
   (0.1ms) RELEASE SAVEPOINT active_record_1
38
-  (0.8ms) rollback transaction
75
+ Rendered posts/_post_admin.html.erb (0.1ms)
76
+  (0.4ms) rollback transaction
39
77
   (0.1ms) begin transaction
40
- ---------------------------------
41
- PolymorphicRenderTest: test_truth
42
- ---------------------------------
43
-  (0.1ms) rollback transaction
44
-  (0.4ms) begin transaction
45
- ---------------------------------------------------------------
46
- PolymorphicRender::ApplicationHelperTest: test_simple_rendering
47
- ---------------------------------------------------------------
78
+ --------------------------------------------------------------------------
79
+ PolymorphicRender::ApplicationHelperTest: test_simple_collection_rendering
80
+ --------------------------------------------------------------------------
81
+  (0.0ms) SAVEPOINT active_record_1
82
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00]]
83
+  (0.1ms) RELEASE SAVEPOINT active_record_1
48
84
   (0.1ms) SAVEPOINT active_record_1
49
- SQL (2.6ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:07:45 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:07:45 UTC +00:00]]
85
+ SQL (1.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00]]
50
86
   (0.1ms) RELEASE SAVEPOINT active_record_1
51
- Rendered posts/_post.html.erb (2.8ms)
52
-  (0.6ms) rollback transaction
53
-  (0.2ms) begin transaction
54
- ---------------------------------
55
- PolymorphicRenderTest: test_truth
56
- ---------------------------------
57
-  (1.1ms) rollback transaction
58
-  (0.6ms) begin transaction
87
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
88
+ Rendered posts/_post.html.erb (0.4ms)
89
+ Rendered posts/_post.html.erb (0.1ms)
90
+  (0.4ms) rollback transaction
91
+  (0.0ms) begin transaction
59
92
  ---------------------------------------------------------------
60
93
  PolymorphicRender::ApplicationHelperTest: test_simple_rendering
61
94
  ---------------------------------------------------------------
62
-  (0.2ms) SAVEPOINT active_record_1
63
- SQL (2.9ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:08:17 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:08:17 UTC +00:00]]
64
-  (0.1ms) RELEASE SAVEPOINT active_record_1
65
- Rendered posts/_post.html.erb (1.2ms)
66
-  (1.5ms) rollback transaction
67
-  (0.1ms) begin transaction
95
+  (0.0ms) SAVEPOINT active_record_1
96
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00]]
97
+  (0.0ms) RELEASE SAVEPOINT active_record_1
98
+  (0.0ms) SAVEPOINT active_record_1
99
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 08:59:23 UTC +00:00]]
100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
101
+ Rendered posts/_post.html.erb (0.1ms)
102
+  (0.3ms) rollback transaction
103
+  (0.0ms) begin transaction
68
104
  ---------------------------------
69
105
  PolymorphicRenderTest: test_truth
70
106
  ---------------------------------
71
-  (0.1ms) rollback transaction
107
+  (0.1ms) rollback transaction
72
108
   (0.3ms) begin transaction
73
- ---------------------------------------------------------------
74
- PolymorphicRender::ApplicationHelperTest: test_simple_rendering
75
- ---------------------------------------------------------------
109
+ ---------------------------------------------------------------------------
110
+ PolymorphicRender::ApplicationHelperTest: test_complex_namespaced_rendering
111
+ ---------------------------------------------------------------------------
112
+  (0.0ms) SAVEPOINT active_record_1
113
+ SQL (2.1ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
115
+  (0.0ms) SAVEPOINT active_record_1
116
+ SQL (0.9ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
118
+ Rendered posts/_post_super_admin.html.erb (1.1ms)
119
+  (0.5ms) rollback transaction
120
+  (0.1ms) begin transaction
121
+ ------------------------------------------------------------------------------
122
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_collection_rendering
123
+ ------------------------------------------------------------------------------
76
124
   (0.1ms) SAVEPOINT active_record_1
77
- SQL (2.6ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:08:59 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:08:59 UTC +00:00]]
78
-  (0.2ms) RELEASE SAVEPOINT active_record_1
79
- Rendered posts/_post.html.erb (1.2ms)
80
-  (2.5ms) rollback transaction
125
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
127
+  (0.1ms) SAVEPOINT active_record_1
128
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
131
+ Rendered posts/_post_admin.html.erb (0.7ms)
132
+ Rendered posts/_post_admin.html.erb (0.1ms)
133
+  (0.4ms) rollback transaction
81
134
   (0.1ms) begin transaction
82
- ---------------------------------
83
- PolymorphicRenderTest: test_truth
84
- ---------------------------------
85
-  (0.1ms) rollback transaction
86
-  (0.4ms) begin transaction
135
+ -------------------------------------------------------------------
136
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_rendering
137
+ -------------------------------------------------------------------
138
+  (0.0ms) SAVEPOINT active_record_1
139
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141
+  (0.0ms) SAVEPOINT active_record_1
142
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
144
+ Rendered posts/_post_admin.html.erb (0.1ms)
145
+  (0.3ms) rollback transaction
146
+  (0.0ms) begin transaction
87
147
  --------------------------------------------------------------------------
88
148
  PolymorphicRender::ApplicationHelperTest: test_simple_collection_rendering
89
149
  --------------------------------------------------------------------------
90
-  (0.1ms) SAVEPOINT active_record_1
91
- SQL (3.0ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00]]
92
-  (0.1ms) RELEASE SAVEPOINT active_record_1
93
150
   (0.0ms) SAVEPOINT active_record_1
94
- SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00]]
95
-  (0.1ms) RELEASE SAVEPOINT active_record_1
96
- Post Load (0.1ms) SELECT "posts".* FROM "posts"
97
- Rendered posts/_post.html.erb (0.9ms)
151
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
153
+  (0.0ms) SAVEPOINT active_record_1
154
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
156
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
157
+ Rendered posts/_post.html.erb (1.4ms)
98
158
  Rendered posts/_post.html.erb (0.1ms)
99
-  (2.6ms) rollback transaction
100
-  (0.1ms) begin transaction
159
+  (0.4ms) rollback transaction
160
+  (0.1ms) begin transaction
101
161
  ---------------------------------------------------------------
102
162
  PolymorphicRender::ApplicationHelperTest: test_simple_rendering
103
163
  ---------------------------------------------------------------
104
-  (0.1ms) SAVEPOINT active_record_1
105
- SQL (0.7ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00]]
106
-  (0.1ms) RELEASE SAVEPOINT active_record_1
107
164
   (0.1ms) SAVEPOINT active_record_1
108
- SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:10:32 UTC +00:00]]
165
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
109
166
   (0.1ms) RELEASE SAVEPOINT active_record_1
110
-  (0.4ms) rollback transaction
111
-  (0.1ms) begin transaction
167
+  (0.0ms) SAVEPOINT active_record_1
168
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:06 UTC +00:00]]
169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
170
+ Rendered posts/_post.html.erb (0.1ms)
171
+  (0.4ms) rollback transaction
172
+  (0.0ms) begin transaction
112
173
  ---------------------------------
113
174
  PolymorphicRenderTest: test_truth
114
175
  ---------------------------------
115
-  (0.1ms) rollback transaction
116
-  (0.4ms) begin transaction
117
- --------------------------------------------------------------------------
118
- PolymorphicRender::ApplicationHelperTest: test_simple_collection_rendering
119
- --------------------------------------------------------------------------
176
+  (0.0ms) rollback transaction
177
+  (0.3ms) begin transaction
178
+ ---------------------------------------------------------------------------
179
+ PolymorphicRender::ApplicationHelperTest: test_complex_namespaced_rendering
180
+ ---------------------------------------------------------------------------
181
+  (0.0ms) SAVEPOINT active_record_1
182
+ SQL (2.0ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
184
+  (0.0ms) SAVEPOINT active_record_1
185
+ SQL (0.9ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
187
+  (1.1ms) rollback transaction
188
+  (0.1ms) begin transaction
189
+ ------------------------------------------------------------------------------
190
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_collection_rendering
191
+ ------------------------------------------------------------------------------
120
192
   (0.1ms) SAVEPOINT active_record_1
121
- SQL (2.7ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00]]
193
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
122
194
   (0.1ms) RELEASE SAVEPOINT active_record_1
123
-  (0.1ms) SAVEPOINT active_record_1
124
- SQL (0.5ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00]]
195
+  (0.0ms) SAVEPOINT active_record_1
196
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
125
197
   (0.1ms) RELEASE SAVEPOINT active_record_1
126
- Post Load (0.1ms) SELECT "posts".* FROM "posts"
127
- Rendered posts/_post.html.erb (0.8ms)
128
- Rendered posts/_post.html.erb (0.1ms)
129
-  (2.7ms) rollback transaction
130
-  (0.2ms) begin transaction
198
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
199
+ Rendered posts/_post_admin.html.erb (1.1ms)
200
+ Rendered posts/_post_admin.html.erb (0.1ms)
201
+  (0.5ms) rollback transaction
202
+  (0.0ms) begin transaction
203
+ -------------------------------------------------------------------
204
+ PolymorphicRender::ApplicationHelperTest: test_namespaced_rendering
205
+ -------------------------------------------------------------------
206
+  (0.1ms) SAVEPOINT active_record_1
207
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209
+  (0.0ms) SAVEPOINT active_record_1
210
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
212
+ Rendered posts/_post_admin.html.erb (0.1ms)
213
+  (0.4ms) rollback transaction
214
+  (0.0ms) begin transaction
215
+ --------------------------------------------------------------------------
216
+ PolymorphicRender::ApplicationHelperTest: test_simple_collection_rendering
217
+ --------------------------------------------------------------------------
218
+  (0.0ms) SAVEPOINT active_record_1
219
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
221
+  (0.0ms) SAVEPOINT active_record_1
222
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
224
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
225
+ Rendered posts/_post.html.erb (0.3ms)
226
+ Rendered posts/_post.html.erb (0.0ms)
227
+  (0.4ms) rollback transaction
228
+  (0.0ms) begin transaction
131
229
  ---------------------------------------------------------------
132
230
  PolymorphicRender::ApplicationHelperTest: test_simple_rendering
133
231
  ---------------------------------------------------------------
134
-  (0.1ms) SAVEPOINT active_record_1
135
- SQL (0.5ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00]]
136
-  (0.1ms) RELEASE SAVEPOINT active_record_1
137
232
   (0.0ms) SAVEPOINT active_record_1
138
- SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:10:58 UTC +00:00]]
233
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
139
234
   (0.1ms) RELEASE SAVEPOINT active_record_1
235
+  (0.1ms) SAVEPOINT active_record_1
236
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:01:37 UTC +00:00]]
237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140
238
  Rendered posts/_post.html.erb (0.1ms)
141
-  (0.6ms) rollback transaction
142
-  (0.2ms) begin transaction
239
+  (0.4ms) rollback transaction
240
+  (0.0ms) begin transaction
143
241
  ---------------------------------
144
242
  PolymorphicRenderTest: test_truth
145
243
  ---------------------------------
146
-  (0.1ms) rollback transaction
244
+  (0.0ms) rollback transaction
147
245
   (0.3ms) begin transaction
246
+ ---------------------------------------------------------------------------
247
+ PolymorphicRender::ApplicationHelperTest: test_complex_namespaced_rendering
248
+ ---------------------------------------------------------------------------
249
+  (0.0ms) SAVEPOINT active_record_1
250
+ SQL (3.6ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
252
+  (0.1ms) SAVEPOINT active_record_1
253
+ SQL (0.9ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
255
+ Rendered posts/_post_admin.html.erb (1.1ms)
256
+ Rendered posts/_post_super_admin.html.erb (0.4ms)
257
+  (0.9ms) rollback transaction
258
+  (0.1ms) begin transaction
148
259
  ------------------------------------------------------------------------------
149
260
  PolymorphicRender::ApplicationHelperTest: test_namespaced_collection_rendering
150
261
  ------------------------------------------------------------------------------
151
262
   (0.1ms) SAVEPOINT active_record_1
152
- SQL (2.7ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
263
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
153
264
   (0.1ms) RELEASE SAVEPOINT active_record_1
154
265
   (0.0ms) SAVEPOINT active_record_1
155
- SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
266
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
156
267
   (0.0ms) RELEASE SAVEPOINT active_record_1
157
268
  Post Load (0.1ms) SELECT "posts".* FROM "posts"
158
- Rendered posts/_post_admin.html.erb (0.7ms)
159
269
  Rendered posts/_post_admin.html.erb (0.1ms)
160
-  (1.6ms) rollback transaction
270
+ Rendered posts/_post_admin.html.erb (0.0ms)
271
+  (0.4ms) rollback transaction
161
272
   (0.1ms) begin transaction
162
273
  -------------------------------------------------------------------
163
274
  PolymorphicRender::ApplicationHelperTest: test_namespaced_rendering
164
275
  -------------------------------------------------------------------
165
-  (0.1ms) SAVEPOINT active_record_1
166
- SQL (0.5ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
167
-  (0.1ms) RELEASE SAVEPOINT active_record_1
276
+  (0.0ms) SAVEPOINT active_record_1
277
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
168
279
   (0.0ms) SAVEPOINT active_record_1
169
- SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
170
-  (0.1ms) RELEASE SAVEPOINT active_record_1
280
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
171
282
  Rendered posts/_post_admin.html.erb (0.1ms)
172
-  (0.5ms) rollback transaction
283
+  (0.4ms) rollback transaction
173
284
   (0.1ms) begin transaction
174
285
  --------------------------------------------------------------------------
175
286
  PolymorphicRender::ApplicationHelperTest: test_simple_collection_rendering
176
287
  --------------------------------------------------------------------------
177
288
   (0.1ms) SAVEPOINT active_record_1
178
- SQL (0.6ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
289
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
179
290
   (0.1ms) RELEASE SAVEPOINT active_record_1
180
-  (0.1ms) SAVEPOINT active_record_1
181
- SQL (0.6ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
291
+  (0.0ms) SAVEPOINT active_record_1
292
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
182
293
   (0.1ms) RELEASE SAVEPOINT active_record_1
183
294
  Post Load (0.1ms) SELECT "posts".* FROM "posts"
184
- Rendered posts/_post.html.erb (0.9ms)
185
- Rendered posts/_post.html.erb (0.2ms)
186
-  (0.6ms) rollback transaction
295
+ Rendered posts/_post.html.erb (0.6ms)
296
+ Rendered posts/_post.html.erb (0.1ms)
297
+  (0.5ms) rollback transaction
187
298
   (0.1ms) begin transaction
188
299
  ---------------------------------------------------------------
189
300
  PolymorphicRender::ApplicationHelperTest: test_simple_rendering
190
301
  ---------------------------------------------------------------
191
-  (0.1ms) SAVEPOINT active_record_1
192
- SQL (0.5ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "My First Post"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
302
+  (0.0ms) SAVEPOINT active_record_1
303
+ SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "My First Post"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
193
304
   (0.1ms) RELEASE SAVEPOINT active_record_1
194
305
   (0.0ms) SAVEPOINT active_record_1
195
- SQL (0.3ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Mon, 03 Mar 2014 09:13:28 UTC +00:00]]
306
+ SQL (0.4ms) INSERT INTO "posts" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00], ["title", "I am Blogger!"], ["updated_at", Fri, 05 Dec 2014 09:03:35 UTC +00:00]]
196
307
   (0.1ms) RELEASE SAVEPOINT active_record_1
197
308
  Rendered posts/_post.html.erb (0.1ms)
198
-  (0.6ms) rollback transaction
199
-  (0.1ms) begin transaction
309
+  (0.5ms) rollback transaction
310
+  (0.0ms) begin transaction
200
311
  ---------------------------------
201
312
  PolymorphicRenderTest: test_truth
202
313
  ---------------------------------
203
-  (0.1ms) rollback transaction
314
+  (0.0ms) rollback transaction
@@ -20,6 +20,11 @@ class PolymorphicRender::ApplicationHelperTest < ActionView::TestCase
20
20
  assert_equal "Edit: My First Post\n", polymorphic_render(@post1, :admin)
21
21
  end
22
22
 
23
+ test 'complex namespaced rendering' do
24
+ assert_equal "Edit: My First Post\n", polymorphic_render(@post1, ['', :admin])
25
+ assert_equal "Destroy: My First Post\n", polymorphic_render(@post1, [:super, :admin])
26
+ end
27
+
23
28
  test 'namespaced collection rendering' do
24
29
  assert_equal "Edit: My First Post\nEdit: I am Blogger!\n", polymorphic_render(Post.all, :admin)
25
30
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polymorphic_render
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
  - Mikhail Dieterle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>'
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>'
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Extend rails views rendering
@@ -45,13 +45,15 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - MIT-LICENSE
49
+ - README.md
50
+ - Rakefile
48
51
  - app/helpers/polymorphic_render/application_helper.rb
52
+ - lib/polymorphic_render.rb
49
53
  - lib/polymorphic_render/engine.rb
50
54
  - lib/polymorphic_render/version.rb
51
- - lib/polymorphic_render.rb
52
- - MIT-LICENSE
53
- - Rakefile
54
- - README.md
55
+ - test/dummy/README.rdoc
56
+ - test/dummy/Rakefile
55
57
  - test/dummy/app/assets/javascripts/application.js
56
58
  - test/dummy/app/assets/stylesheets/application.css
57
59
  - test/dummy/app/controllers/application_controller.rb
@@ -60,9 +62,11 @@ files:
60
62
  - test/dummy/app/views/layouts/application.html.erb
61
63
  - test/dummy/app/views/posts/_post.html.erb
62
64
  - test/dummy/app/views/posts/_post_admin.html.erb
65
+ - test/dummy/app/views/posts/_post_super_admin.html.erb
63
66
  - test/dummy/bin/bundle
64
67
  - test/dummy/bin/rails
65
68
  - test/dummy/bin/rake
69
+ - test/dummy/config.ru
66
70
  - test/dummy/config/application.rb
67
71
  - test/dummy/config/boot.rb
68
72
  - test/dummy/config/database.yml
@@ -79,7 +83,6 @@ files:
79
83
  - test/dummy/config/initializers/wrap_parameters.rb
80
84
  - test/dummy/config/locales/en.yml
81
85
  - test/dummy/config/routes.rb
82
- - test/dummy/config.ru
83
86
  - test/dummy/db/development.sqlite3
84
87
  - test/dummy/db/migrate/20140303085238_create_posts.rb
85
88
  - test/dummy/db/schema.rb
@@ -90,8 +93,6 @@ files:
90
93
  - test/dummy/public/422.html
91
94
  - test/dummy/public/500.html
92
95
  - test/dummy/public/favicon.ico
93
- - test/dummy/Rakefile
94
- - test/dummy/README.rdoc
95
96
  - test/dummy/test/fixtures/posts.yml
96
97
  - test/dummy/test/models/post_test.rb
97
98
  - test/helpers/application_helper_test.rb
@@ -107,17 +108,17 @@ require_paths:
107
108
  - lib
108
109
  required_ruby_version: !ruby/object:Gem::Requirement
109
110
  requirements:
110
- - - '>='
111
+ - - ">="
111
112
  - !ruby/object:Gem::Version
112
113
  version: '0'
113
114
  required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  requirements:
115
- - - '>='
116
+ - - ">="
116
117
  - !ruby/object:Gem::Version
117
118
  version: '0'
118
119
  requirements: []
119
120
  rubyforge_project:
120
- rubygems_version: 2.0.6
121
+ rubygems_version: 2.2.2
121
122
  signing_key:
122
123
  specification_version: 4
123
124
  summary: Extend rails views rendering
@@ -130,6 +131,7 @@ test_files:
130
131
  - test/dummy/app/views/layouts/application.html.erb
131
132
  - test/dummy/app/views/posts/_post.html.erb
132
133
  - test/dummy/app/views/posts/_post_admin.html.erb
134
+ - test/dummy/app/views/posts/_post_super_admin.html.erb
133
135
  - test/dummy/bin/bundle
134
136
  - test/dummy/bin/rails
135
137
  - test/dummy/bin/rake