inherited_resources 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inherited_resources/version.rb +1 -1
- metadata +13 -218
- data/.gitignore +0 -1
- data/CHANGELOG +0 -172
- data/Gemfile +0 -10
- data/Gemfile.lock +0 -71
- data/Rakefile +0 -24
- data/inherited_resources.gemspec +0 -25
- data/test/aliases_test.rb +0 -146
- data/test/association_chain_test.rb +0 -125
- data/test/base_test.rb +0 -334
- data/test/belongs_to_test.rb +0 -130
- data/test/belongs_to_with_shallow_test.rb +0 -93
- data/test/class_methods_test.rb +0 -185
- data/test/customized_base_test.rb +0 -168
- data/test/customized_belongs_to_test.rb +0 -76
- data/test/customized_redirect_to_test.rb +0 -32
- data/test/defaults_test.rb +0 -197
- data/test/locales/en.yml +0 -17
- data/test/multiple_nested_optional_belongs_to_test.rb +0 -369
- data/test/nested_belongs_to_test.rb +0 -108
- data/test/nested_belongs_to_with_shallow_test.rb +0 -123
- data/test/nested_model_with_shallow_test.rb +0 -147
- data/test/nested_singleton_test.rb +0 -167
- data/test/optional_belongs_to_test.rb +0 -164
- data/test/polymorphic_test.rb +0 -215
- data/test/redirect_to_test.rb +0 -51
- data/test/singleton_test.rb +0 -87
- data/test/strong_parameters_test.rb +0 -120
- data/test/test_helper.rb +0 -47
- data/test/url_helpers_test.rb +0 -988
- data/test/views/address/edit.html.erb +0 -1
- data/test/views/address/new.html.erb +0 -1
- data/test/views/address/show.html.erb +0 -1
- data/test/views/cars/edit.html.erb +0 -1
- data/test/views/cars/index.html.erb +0 -1
- data/test/views/cars/new.html.erb +0 -1
- data/test/views/cars/show.html.erb +0 -1
- data/test/views/cities/edit.html.erb +0 -1
- data/test/views/cities/index.html.erb +0 -1
- data/test/views/cities/new.html.erb +0 -1
- data/test/views/cities/show.html.erb +0 -1
- data/test/views/comments/edit.html.erb +0 -1
- data/test/views/comments/index.html.erb +0 -1
- data/test/views/comments/new.html.erb +0 -1
- data/test/views/comments/show.html.erb +0 -1
- data/test/views/educations/new.html.erb +0 -0
- data/test/views/employees/edit.html.erb +0 -1
- data/test/views/employees/index.html.erb +0 -1
- data/test/views/employees/new.html.erb +0 -1
- data/test/views/employees/show.html.erb +0 -1
- data/test/views/geolocation/show.html.erb +0 -1
- data/test/views/groups/edit.html.erb +0 -0
- data/test/views/managers/edit.html.erb +0 -1
- data/test/views/managers/new.html.erb +0 -1
- data/test/views/managers/show.html.erb +0 -1
- data/test/views/painters/edit.html.erb +0 -1
- data/test/views/painters/index.html.erb +0 -1
- data/test/views/painters/new.html.erb +0 -1
- data/test/views/painters/show.html.erb +0 -1
- data/test/views/pets/edit.html.erb +0 -1
- data/test/views/pets/index.html.erb +0 -1
- data/test/views/pets/new.html.erb +0 -1
- data/test/views/pets/show.html.erb +0 -1
- data/test/views/photos/index.html.erb +0 -1
- data/test/views/plates/edit.html.erb +0 -1
- data/test/views/plates/index.html.erb +0 -1
- data/test/views/plates/new.html.erb +0 -1
- data/test/views/plates/show.html.erb +0 -1
- data/test/views/products/edit.html.erb +0 -1
- data/test/views/products/index.html.erb +0 -1
- data/test/views/products/new.html.erb +0 -1
- data/test/views/products/show.html.erb +0 -1
- data/test/views/professors/edit.html.erb +0 -1
- data/test/views/professors/index.html.erb +0 -1
- data/test/views/professors/new.html.erb +0 -1
- data/test/views/professors/show.html.erb +0 -1
- data/test/views/projects/edit.html.erb +0 -1
- data/test/views/projects/index.html.erb +0 -1
- data/test/views/projects/index.json.erb +0 -1
- data/test/views/projects/new.html.erb +0 -1
- data/test/views/projects/respond_to_skip_default_template.html.erb +0 -1
- data/test/views/projects/respond_with_resource.html.erb +0 -1
- data/test/views/projects/show.html.erb +0 -1
- data/test/views/students/edit.html.erb +0 -1
- data/test/views/students/new.html.erb +0 -1
- data/test/views/tags/edit.html.erb +0 -1
- data/test/views/tags/index.html.erb +0 -1
- data/test/views/tags/new.html.erb +0 -1
- data/test/views/tags/show.html.erb +0 -1
- data/test/views/trees/edit.html.erb +0 -1
- data/test/views/trees/index.html.erb +0 -1
- data/test/views/trees/new.html.erb +0 -1
- data/test/views/trees/show.html.erb +0 -1
- data/test/views/university/professors/edit.html.erb +0 -1
- data/test/views/university/professors/index.html.erb +0 -1
- data/test/views/university/professors/new.html.erb +0 -1
- data/test/views/university/professors/show.html.erb +0 -1
- data/test/views/users/create.js.erb +0 -1
- data/test/views/users/destroy.js.erb +0 -1
- data/test/views/users/edit.html.erb +0 -1
- data/test/views/users/index.html.erb +0 -1
- data/test/views/users/new.html.erb +0 -1
- data/test/views/users/show.html.erb +0 -1
- data/test/views/users/update.js.erb +0 -1
- data/test/views/venue/show.html.erb +0 -1
- data/test/views/widgets/new.html.erb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a8ecdfec2db9c75ad03674c7a299777858f9d9e
|
4
|
+
data.tar.gz: e98f948659ee83a8f939d25f3f65545a6bfce8ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c62f90fc082c373908ef03d428571f5ab773ae1c6d37d26c2dbde54a08c3799102adf3a4bca50c3b367e4f7cb5333182820bacff4b6592df5a0772d82aec302d
|
7
|
+
data.tar.gz: 0c5d1d18700eaeb3c97e2eb4d6f60c2e7d72d3306417e237ecc2c5b781d0c47d40120e58dbc6631532e6cde079f978e36039f2630a8e476df8b6db170c1a7d9b
|
metadata
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inherited_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- José Valim
|
8
|
-
-
|
8
|
+
- Rafael Mendonça França
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: responders
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: actionpack
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: '3.2'
|
35
35
|
- - "<"
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
37
|
+
version: '5'
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '3.2'
|
45
45
|
- - "<"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '5'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: railties
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '3.2'
|
55
55
|
- - "<"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
57
|
+
version: '5'
|
58
58
|
type: :runtime
|
59
59
|
prerelease: false
|
60
60
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
version: '3.2'
|
65
65
|
- - "<"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '5'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: has_scope
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,15 +86,9 @@ executables: []
|
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
|
-
- ".gitignore"
|
90
|
-
- CHANGELOG
|
91
|
-
- Gemfile
|
92
|
-
- Gemfile.lock
|
93
89
|
- MIT-LICENSE
|
94
90
|
- README.md
|
95
|
-
- Rakefile
|
96
91
|
- app/controllers/inherited_resources/base.rb
|
97
|
-
- inherited_resources.gemspec
|
98
92
|
- lib/generators/rails/USAGE
|
99
93
|
- lib/generators/rails/inherited_resources_controller_generator.rb
|
100
94
|
- lib/generators/rails/templates/controller.rb
|
@@ -111,105 +105,6 @@ files:
|
|
111
105
|
- lib/inherited_resources/singleton_helpers.rb
|
112
106
|
- lib/inherited_resources/url_helpers.rb
|
113
107
|
- lib/inherited_resources/version.rb
|
114
|
-
- test/aliases_test.rb
|
115
|
-
- test/association_chain_test.rb
|
116
|
-
- test/base_test.rb
|
117
|
-
- test/belongs_to_test.rb
|
118
|
-
- test/belongs_to_with_shallow_test.rb
|
119
|
-
- test/class_methods_test.rb
|
120
|
-
- test/customized_base_test.rb
|
121
|
-
- test/customized_belongs_to_test.rb
|
122
|
-
- test/customized_redirect_to_test.rb
|
123
|
-
- test/defaults_test.rb
|
124
|
-
- test/locales/en.yml
|
125
|
-
- test/multiple_nested_optional_belongs_to_test.rb
|
126
|
-
- test/nested_belongs_to_test.rb
|
127
|
-
- test/nested_belongs_to_with_shallow_test.rb
|
128
|
-
- test/nested_model_with_shallow_test.rb
|
129
|
-
- test/nested_singleton_test.rb
|
130
|
-
- test/optional_belongs_to_test.rb
|
131
|
-
- test/polymorphic_test.rb
|
132
|
-
- test/redirect_to_test.rb
|
133
|
-
- test/singleton_test.rb
|
134
|
-
- test/strong_parameters_test.rb
|
135
|
-
- test/test_helper.rb
|
136
|
-
- test/url_helpers_test.rb
|
137
|
-
- test/views/address/edit.html.erb
|
138
|
-
- test/views/address/new.html.erb
|
139
|
-
- test/views/address/show.html.erb
|
140
|
-
- test/views/cars/edit.html.erb
|
141
|
-
- test/views/cars/index.html.erb
|
142
|
-
- test/views/cars/new.html.erb
|
143
|
-
- test/views/cars/show.html.erb
|
144
|
-
- test/views/cities/edit.html.erb
|
145
|
-
- test/views/cities/index.html.erb
|
146
|
-
- test/views/cities/new.html.erb
|
147
|
-
- test/views/cities/show.html.erb
|
148
|
-
- test/views/comments/edit.html.erb
|
149
|
-
- test/views/comments/index.html.erb
|
150
|
-
- test/views/comments/new.html.erb
|
151
|
-
- test/views/comments/show.html.erb
|
152
|
-
- test/views/educations/new.html.erb
|
153
|
-
- test/views/employees/edit.html.erb
|
154
|
-
- test/views/employees/index.html.erb
|
155
|
-
- test/views/employees/new.html.erb
|
156
|
-
- test/views/employees/show.html.erb
|
157
|
-
- test/views/geolocation/show.html.erb
|
158
|
-
- test/views/groups/edit.html.erb
|
159
|
-
- test/views/managers/edit.html.erb
|
160
|
-
- test/views/managers/new.html.erb
|
161
|
-
- test/views/managers/show.html.erb
|
162
|
-
- test/views/painters/edit.html.erb
|
163
|
-
- test/views/painters/index.html.erb
|
164
|
-
- test/views/painters/new.html.erb
|
165
|
-
- test/views/painters/show.html.erb
|
166
|
-
- test/views/pets/edit.html.erb
|
167
|
-
- test/views/pets/index.html.erb
|
168
|
-
- test/views/pets/new.html.erb
|
169
|
-
- test/views/pets/show.html.erb
|
170
|
-
- test/views/photos/index.html.erb
|
171
|
-
- test/views/plates/edit.html.erb
|
172
|
-
- test/views/plates/index.html.erb
|
173
|
-
- test/views/plates/new.html.erb
|
174
|
-
- test/views/plates/show.html.erb
|
175
|
-
- test/views/products/edit.html.erb
|
176
|
-
- test/views/products/index.html.erb
|
177
|
-
- test/views/products/new.html.erb
|
178
|
-
- test/views/products/show.html.erb
|
179
|
-
- test/views/professors/edit.html.erb
|
180
|
-
- test/views/professors/index.html.erb
|
181
|
-
- test/views/professors/new.html.erb
|
182
|
-
- test/views/professors/show.html.erb
|
183
|
-
- test/views/projects/edit.html.erb
|
184
|
-
- test/views/projects/index.html.erb
|
185
|
-
- test/views/projects/index.json.erb
|
186
|
-
- test/views/projects/new.html.erb
|
187
|
-
- test/views/projects/respond_to_skip_default_template.html.erb
|
188
|
-
- test/views/projects/respond_with_resource.html.erb
|
189
|
-
- test/views/projects/show.html.erb
|
190
|
-
- test/views/students/edit.html.erb
|
191
|
-
- test/views/students/new.html.erb
|
192
|
-
- test/views/tags/edit.html.erb
|
193
|
-
- test/views/tags/index.html.erb
|
194
|
-
- test/views/tags/new.html.erb
|
195
|
-
- test/views/tags/show.html.erb
|
196
|
-
- test/views/trees/edit.html.erb
|
197
|
-
- test/views/trees/index.html.erb
|
198
|
-
- test/views/trees/new.html.erb
|
199
|
-
- test/views/trees/show.html.erb
|
200
|
-
- test/views/university/professors/edit.html.erb
|
201
|
-
- test/views/university/professors/index.html.erb
|
202
|
-
- test/views/university/professors/new.html.erb
|
203
|
-
- test/views/university/professors/show.html.erb
|
204
|
-
- test/views/users/create.js.erb
|
205
|
-
- test/views/users/destroy.js.erb
|
206
|
-
- test/views/users/edit.html.erb
|
207
|
-
- test/views/users/index.html.erb
|
208
|
-
- test/views/users/new.html.erb
|
209
|
-
- test/views/users/show.html.erb
|
210
|
-
- test/views/users/update.js.erb
|
211
|
-
- test/views/venue/show.html.erb
|
212
|
-
- test/views/widgets/new.html.erb
|
213
108
|
homepage: http://github.com/josevalim/inherited_resources
|
214
109
|
licenses:
|
215
110
|
- MIT
|
@@ -230,109 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
125
|
version: '0'
|
231
126
|
requirements: []
|
232
127
|
rubyforge_project: inherited_resources
|
233
|
-
rubygems_version: 2.4.
|
128
|
+
rubygems_version: 2.4.5
|
234
129
|
signing_key:
|
235
130
|
specification_version: 4
|
236
131
|
summary: Inherited Resources speeds up development by making your controllers inherit
|
237
132
|
all restful actions so you just have to focus on what is important.
|
238
|
-
test_files:
|
239
|
-
- test/aliases_test.rb
|
240
|
-
- test/association_chain_test.rb
|
241
|
-
- test/base_test.rb
|
242
|
-
- test/belongs_to_test.rb
|
243
|
-
- test/belongs_to_with_shallow_test.rb
|
244
|
-
- test/class_methods_test.rb
|
245
|
-
- test/customized_base_test.rb
|
246
|
-
- test/customized_belongs_to_test.rb
|
247
|
-
- test/customized_redirect_to_test.rb
|
248
|
-
- test/defaults_test.rb
|
249
|
-
- test/locales/en.yml
|
250
|
-
- test/multiple_nested_optional_belongs_to_test.rb
|
251
|
-
- test/nested_belongs_to_test.rb
|
252
|
-
- test/nested_belongs_to_with_shallow_test.rb
|
253
|
-
- test/nested_model_with_shallow_test.rb
|
254
|
-
- test/nested_singleton_test.rb
|
255
|
-
- test/optional_belongs_to_test.rb
|
256
|
-
- test/polymorphic_test.rb
|
257
|
-
- test/redirect_to_test.rb
|
258
|
-
- test/singleton_test.rb
|
259
|
-
- test/strong_parameters_test.rb
|
260
|
-
- test/test_helper.rb
|
261
|
-
- test/url_helpers_test.rb
|
262
|
-
- test/views/address/edit.html.erb
|
263
|
-
- test/views/address/new.html.erb
|
264
|
-
- test/views/address/show.html.erb
|
265
|
-
- test/views/cars/edit.html.erb
|
266
|
-
- test/views/cars/index.html.erb
|
267
|
-
- test/views/cars/new.html.erb
|
268
|
-
- test/views/cars/show.html.erb
|
269
|
-
- test/views/cities/edit.html.erb
|
270
|
-
- test/views/cities/index.html.erb
|
271
|
-
- test/views/cities/new.html.erb
|
272
|
-
- test/views/cities/show.html.erb
|
273
|
-
- test/views/comments/edit.html.erb
|
274
|
-
- test/views/comments/index.html.erb
|
275
|
-
- test/views/comments/new.html.erb
|
276
|
-
- test/views/comments/show.html.erb
|
277
|
-
- test/views/educations/new.html.erb
|
278
|
-
- test/views/employees/edit.html.erb
|
279
|
-
- test/views/employees/index.html.erb
|
280
|
-
- test/views/employees/new.html.erb
|
281
|
-
- test/views/employees/show.html.erb
|
282
|
-
- test/views/geolocation/show.html.erb
|
283
|
-
- test/views/groups/edit.html.erb
|
284
|
-
- test/views/managers/edit.html.erb
|
285
|
-
- test/views/managers/new.html.erb
|
286
|
-
- test/views/managers/show.html.erb
|
287
|
-
- test/views/painters/edit.html.erb
|
288
|
-
- test/views/painters/index.html.erb
|
289
|
-
- test/views/painters/new.html.erb
|
290
|
-
- test/views/painters/show.html.erb
|
291
|
-
- test/views/pets/edit.html.erb
|
292
|
-
- test/views/pets/index.html.erb
|
293
|
-
- test/views/pets/new.html.erb
|
294
|
-
- test/views/pets/show.html.erb
|
295
|
-
- test/views/photos/index.html.erb
|
296
|
-
- test/views/plates/edit.html.erb
|
297
|
-
- test/views/plates/index.html.erb
|
298
|
-
- test/views/plates/new.html.erb
|
299
|
-
- test/views/plates/show.html.erb
|
300
|
-
- test/views/products/edit.html.erb
|
301
|
-
- test/views/products/index.html.erb
|
302
|
-
- test/views/products/new.html.erb
|
303
|
-
- test/views/products/show.html.erb
|
304
|
-
- test/views/professors/edit.html.erb
|
305
|
-
- test/views/professors/index.html.erb
|
306
|
-
- test/views/professors/new.html.erb
|
307
|
-
- test/views/professors/show.html.erb
|
308
|
-
- test/views/projects/edit.html.erb
|
309
|
-
- test/views/projects/index.html.erb
|
310
|
-
- test/views/projects/index.json.erb
|
311
|
-
- test/views/projects/new.html.erb
|
312
|
-
- test/views/projects/respond_to_skip_default_template.html.erb
|
313
|
-
- test/views/projects/respond_with_resource.html.erb
|
314
|
-
- test/views/projects/show.html.erb
|
315
|
-
- test/views/students/edit.html.erb
|
316
|
-
- test/views/students/new.html.erb
|
317
|
-
- test/views/tags/edit.html.erb
|
318
|
-
- test/views/tags/index.html.erb
|
319
|
-
- test/views/tags/new.html.erb
|
320
|
-
- test/views/tags/show.html.erb
|
321
|
-
- test/views/trees/edit.html.erb
|
322
|
-
- test/views/trees/index.html.erb
|
323
|
-
- test/views/trees/new.html.erb
|
324
|
-
- test/views/trees/show.html.erb
|
325
|
-
- test/views/university/professors/edit.html.erb
|
326
|
-
- test/views/university/professors/index.html.erb
|
327
|
-
- test/views/university/professors/new.html.erb
|
328
|
-
- test/views/university/professors/show.html.erb
|
329
|
-
- test/views/users/create.js.erb
|
330
|
-
- test/views/users/destroy.js.erb
|
331
|
-
- test/views/users/edit.html.erb
|
332
|
-
- test/views/users/index.html.erb
|
333
|
-
- test/views/users/new.html.erb
|
334
|
-
- test/views/users/show.html.erb
|
335
|
-
- test/views/users/update.js.erb
|
336
|
-
- test/views/venue/show.html.erb
|
337
|
-
- test/views/widgets/new.html.erb
|
338
|
-
has_rdoc:
|
133
|
+
test_files: []
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
.bundle
|
data/CHANGELOG
DELETED
@@ -1,172 +0,0 @@
|
|
1
|
-
# Version 1.5.1
|
2
|
-
|
3
|
-
* Lock the Rails version until only 4.2.
|
4
|
-
* Fix parent class lookup.
|
5
|
-
* Fix resource_class default value definition.
|
6
|
-
|
7
|
-
# Version 1.5.0
|
8
|
-
|
9
|
-
* Supports nested modules (namespaced models and controllers).
|
10
|
-
* Supports Rails 4 Strong Parameters notation.
|
11
|
-
|
12
|
-
# Version 1.4.1
|
13
|
-
|
14
|
-
* Supports Rails 4
|
15
|
-
* Improved compatability with strong params.
|
16
|
-
|
17
|
-
# Version 1.4.0
|
18
|
-
|
19
|
-
* Supports Ruby 2.0.0
|
20
|
-
* Added support for the strong_parameters gem. See the README for more
|
21
|
-
* Added the ability to pass without_protection when creating/updating
|
22
|
-
* Fixed multi-level nested singletons
|
23
|
-
* Correct paths now generated for uncountable shallow resources
|
24
|
-
|
25
|
-
# Version 1.3.1
|
26
|
-
|
27
|
-
* Fix polymorphic_belongs_to to get the parent
|
28
|
-
* Added support for Rails 3.2
|
29
|
-
* Added support to responders >= 0.6.0
|
30
|
-
|
31
|
-
# Version 1.3.0
|
32
|
-
|
33
|
-
* Added support for multiple polymorphic optional nesting
|
34
|
-
* Fix nested namespace in mountable apps
|
35
|
-
* Added support for rails 3.1 new mass assignment conventions
|
36
|
-
* Turn InheritedResources::Base into a reloadable constant to fix reloading issues
|
37
|
-
|
38
|
-
# Version 1.2.2
|
39
|
-
|
40
|
-
* Fix a bug in params parsing
|
41
|
-
* Call .scoped only if it is available
|
42
|
-
|
43
|
-
# Version 1.2.1
|
44
|
-
|
45
|
-
* Fix a bug with namespaces
|
46
|
-
* Use Post.scoped instead of Post.all in collection
|
47
|
-
|
48
|
-
# Version 1.2
|
49
|
-
|
50
|
-
* Improved lookup for namespaces (by github.com/Sirupsen)
|
51
|
-
* Support to custom actions (by github.com/lda)
|
52
|
-
* Rails 3.1 compatibility (by github.com/etehtsea)
|
53
|
-
|
54
|
-
# Version 1.1
|
55
|
-
|
56
|
-
* Rails 3 compatible
|
57
|
-
|
58
|
-
# Version 1.0
|
59
|
-
|
60
|
-
* responders was removed from InheritedResources core and is a dependency. To install it, please do:
|
61
|
-
|
62
|
-
sudo gem install responders
|
63
|
-
|
64
|
-
* has_scope was removed from InheritedResources core and is now available as a standalone gem.
|
65
|
-
To install it, please do:
|
66
|
-
|
67
|
-
sudo gem install has_scope
|
68
|
-
|
69
|
-
# Version 0.9
|
70
|
-
|
71
|
-
* Allow dual blocks in destroy;
|
72
|
-
* Added :if and :unless to has_scope (thanks to Jack Danger);
|
73
|
-
* Added create_resource, update_resource and delete_resource hooks (thanks to Carlos Antonio da Silva);
|
74
|
-
* Backported ActionController::Responder from Rails 3;
|
75
|
-
* Added parent_url helper;
|
76
|
-
* Added association_chain helper (as suggested by http://github.com/emmanuel);
|
77
|
-
|
78
|
-
# Version 0.8
|
79
|
-
|
80
|
-
* Fixed a small bug on optional belongs to with namespaced controllers.
|
81
|
-
* Allow a parameter to be given to collection_url in polymorphic cases to replace
|
82
|
-
the parent.
|
83
|
-
* Allow InheritedResources to be called without inheritance.
|
84
|
-
* Ensure that controllers that inherit from a controller with InheritedResources
|
85
|
-
works properly.
|
86
|
-
|
87
|
-
# Version 0.7
|
88
|
-
|
89
|
-
* Allow procs as default value in has scope to be able to use values from session, for example.
|
90
|
-
* Allow blocks with arity 0 or -1 to be given as the redirect url:
|
91
|
-
|
92
|
-
def destroy
|
93
|
-
destroy!{ project_url(@project) }
|
94
|
-
end
|
95
|
-
|
96
|
-
* Allow interpolation_options to be set in the application controller.
|
97
|
-
* Added has_scope to controller (an interface for named_scopes).
|
98
|
-
* Added polymorphic_belongs_to, optional_belongs_to and singleton_belongs_to
|
99
|
-
as quick methods.
|
100
|
-
* Only load belongs_to, singleton and polymorphic helpers if they are actually
|
101
|
-
required. base_helpers, class_methods, dumb_responder and url_helpers are loaded
|
102
|
-
when you inherited from base for the first time.
|
103
|
-
|
104
|
-
# Version 0.6
|
105
|
-
|
106
|
-
* Ensure that the default template is not rendered if the default_template_format
|
107
|
-
is not accepted. This is somehow related with the security breach report:
|
108
|
-
|
109
|
-
http://www.rorsecurity.info/journal/2009/4/24/hidden-actions-render-templates.html
|
110
|
-
|
111
|
-
IR forbids based on mime types. For example: respond_to :html, :except => :index
|
112
|
-
ensures that the index.html.erb view is not rendered, making your IR controllers
|
113
|
-
safer.
|
114
|
-
|
115
|
-
* Fixed a bug that happens only when format.xml is given to blocks and then it
|
116
|
-
acts as default, instead of format.html.
|
117
|
-
* Fixed a strange bug where when you have create.html.erb or update.html.erb,
|
118
|
-
it makes IE6 and IE7 return unprocessable entity (because they send Mime::ALL).
|
119
|
-
* Stop rescueing any error when constantizing the resource class and allow
|
120
|
-
route_prefix to be nil.
|
121
|
-
* Cleaned up tests and responder structure. Whenever you pass a block to aliases
|
122
|
-
and this block responds to the request, the other blocks are not parsed improving performance.
|
123
|
-
* [BACKWARDS INCOMPATIBLE] By default, Inherited Resources respond only :html requests.
|
124
|
-
* Added a quick way to overwrite the redirect to url in :create, :update and :destroy.
|
125
|
-
|
126
|
-
# Version 0.5
|
127
|
-
|
128
|
-
* Decoupled routes name from :instance_name and :collection_name. This way we
|
129
|
-
have more flexibility. Use route_instance_name and route_collection_name to
|
130
|
-
to change routes.
|
131
|
-
* Avoid calling human_name on nil when a resource class is not defined.
|
132
|
-
* Only call I18n if it's defined.
|
133
|
-
|
134
|
-
# Version 0.4
|
135
|
-
|
136
|
-
* Dealing with namespaced controllers out of the box.
|
137
|
-
* Added support to namespaced routes through :route_prefix.
|
138
|
-
* Added fix when resource_url is not defined.
|
139
|
-
* Added better handling for namespaced controllers.
|
140
|
-
* Added flash messages scoped by namespaced controllers.
|
141
|
-
* Deprecated {{resource}} in I18n, use {{resource_name}} instead.
|
142
|
-
* rspec bug fix is not automatically required anymore. User has to do it
|
143
|
-
explicitly.
|
144
|
-
* Added a file which fix a rspec bug when render is called inside a method
|
145
|
-
which receives a block.
|
146
|
-
* parent? does not take begin_of_association_chain into account anymore
|
147
|
-
* Added options to url helpers.
|
148
|
-
* Added :optional to belongs_to associations. It allows you to deal with
|
149
|
-
categories/1/products/2 and /products/2 with just one controller.
|
150
|
-
* Cleaned up tests.
|
151
|
-
|
152
|
-
# Version 0.3
|
153
|
-
|
154
|
-
* Minor bump after three bug fixes.
|
155
|
-
* Bug fix when showing warning of constant redefinition.
|
156
|
-
* Bug fix with ApplicationController not being unloaded properly on development.
|
157
|
-
* Bug fix when having root singleton resources. Calling collection_url would
|
158
|
-
raise "NoMethodError _url", not it will call root_url.
|
159
|
-
* More comments on UrlHelpers.
|
160
|
-
|
161
|
-
# Version 0.2
|
162
|
-
|
163
|
-
* Bug fix when ApplicationController is already loaded when we load respond_to.
|
164
|
-
* Added support success/failure blocks.
|
165
|
-
* Eager loading of files to work properly in multithreaded environments.
|
166
|
-
|
167
|
-
# Version 0.1
|
168
|
-
|
169
|
-
* Added more helper_methods.
|
170
|
-
* Added Rails 2.3.0 and changed tests to work with ActionController::TestCase.
|
171
|
-
* First release. Support to I18n, singleton controllers, polymorphic
|
172
|
-
controllers, belongs_to, nested_belongs_to and url helpers.
|