express_admin 1.6.1 → 1.6.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 707d79b70437794485e68269636b019ed519b409
|
4
|
+
data.tar.gz: 421297d6d814654bb04624de86bd06edece46960
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e3ca274eb1714b8f6e4cd5fb26db88051ab4e8fe59714493d930aa0f132cce2ec4eb0d668441056d448b9a5492e4e59481f9d38da4e2145a6fb3ffbee08eb8b
|
7
|
+
data.tar.gz: 1fc7d52884145fe37656d7ff4d6b5d5588d1bd7a753459a224017d0f4a74870b11015aec38bf6fce374bb919b3c520d66e3e176354ed3b0575643d7a15524456
|
@@ -87,14 +87,14 @@ module ExpressAdmin
|
|
87
87
|
build_resource
|
88
88
|
load_collection
|
89
89
|
respond_to do |format|
|
90
|
-
format.html { render
|
90
|
+
format.html { render index_view, layout: defaults[:layout] }
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
94
|
def new
|
95
95
|
build_resource
|
96
96
|
respond_to do |format|
|
97
|
-
format.html { render
|
97
|
+
format.html { render new_view, layout: defaults[:layout] }
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -106,7 +106,7 @@ module ExpressAdmin
|
|
106
106
|
end
|
107
107
|
else
|
108
108
|
respond_to do |format|
|
109
|
-
format.html { render
|
109
|
+
format.html { render new_view, layout: defaults[:layout] }
|
110
110
|
end
|
111
111
|
end
|
112
112
|
end
|
@@ -115,14 +115,14 @@ module ExpressAdmin
|
|
115
115
|
load_resource
|
116
116
|
load_collection
|
117
117
|
respond_to do |format|
|
118
|
-
format.html { render
|
118
|
+
format.html { render show_view, layout: defaults[:layout] }
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
122
|
def edit
|
123
123
|
load_resource
|
124
124
|
respond_to do |format|
|
125
|
-
format.html { render
|
125
|
+
format.html { render edit_view, layout: defaults[:layout] }
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
@@ -134,7 +134,7 @@ module ExpressAdmin
|
|
134
134
|
end
|
135
135
|
else
|
136
136
|
respond_to do |format|
|
137
|
-
format.html { render
|
137
|
+
format.html { render edit_view, layout: defaults[:layout] }
|
138
138
|
end
|
139
139
|
end
|
140
140
|
end
|
@@ -148,6 +148,23 @@ module ExpressAdmin
|
|
148
148
|
end
|
149
149
|
|
150
150
|
protected
|
151
|
+
|
152
|
+
def edit_view
|
153
|
+
:edit
|
154
|
+
end
|
155
|
+
|
156
|
+
def new_view
|
157
|
+
:new
|
158
|
+
end
|
159
|
+
|
160
|
+
def show_view
|
161
|
+
:show
|
162
|
+
end
|
163
|
+
|
164
|
+
def index_view
|
165
|
+
:index
|
166
|
+
end
|
167
|
+
|
151
168
|
def resource_path
|
152
169
|
proxy = route_proxy
|
153
170
|
proxy ||= self
|