obitum-rails_admin 0.0.2 → 0.0.3
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.
- data/app/assets/javascripts/rails_admin/ra.filter-box.js +33 -24
- data/app/assets/javascripts/rails_admin/ui.js.coffee +1 -1
- data/app/assets/stylesheets/rails_admin/aristo/jquery-ui-1.8.7.custom.css.scss +1 -1
- data/app/assets/stylesheets/rails_admin/base/theming.css.scss +5 -0
- data/app/controllers/rails_admin/main_controller.rb +16 -14
- data/app/helpers/rails_admin/application_helper.rb +1 -1
- data/app/helpers/rails_admin/form_builder.rb +7 -11
- data/app/views/layouts/rails_admin/application.html.haml +1 -1
- data/app/views/rails_admin/main/_form_filtering_multiselect.html.haml +4 -4
- data/app/views/rails_admin/main/_form_filtering_select.html.haml +4 -4
- data/app/views/rails_admin/main/_form_text.html.haml +1 -1
- data/app/views/rails_admin/main/index.html.haml +22 -6
- data/config/locales/fr.yml +24 -0
- data/config/locales/rails_admin.en.yml +1 -0
- data/lib/rails_admin/adapters/active_record.rb +45 -46
- data/lib/rails_admin/config/actions/edit.rb +7 -3
- data/lib/rails_admin/config/actions/index.rb +3 -1
- data/lib/rails_admin/config/actions/new.rb +4 -4
- data/lib/rails_admin/config/actions.rb +1 -1
- data/lib/rails_admin/config/fields/association.rb +19 -9
- data/lib/rails_admin/config/fields/base.rb +28 -39
- data/lib/rails_admin/config/fields/factories/belongs_to_association.rb +2 -2
- data/lib/rails_admin/config/fields/factories/carrierwave.rb +1 -1
- data/lib/rails_admin/config/fields/factories/enum.rb +1 -1
- data/lib/rails_admin/config/fields/factories/password.rb +1 -1
- data/lib/rails_admin/config/fields/factories/serialized.rb +17 -0
- data/lib/rails_admin/config/fields/types/all.rb +1 -0
- data/lib/rails_admin/config/fields/types/belongs_to_association.rb +6 -8
- data/lib/rails_admin/config/fields/types/boolean.rb +4 -2
- data/lib/rails_admin/config/fields/types/has_one_association.rb +5 -1
- data/lib/rails_admin/config/fields/types/hidden.rb +4 -2
- data/lib/rails_admin/config/fields/types/integer.rb +3 -1
- data/lib/rails_admin/config/fields/types/password.rb +2 -5
- data/lib/rails_admin/config/fields/types/polymorphic_association.rb +1 -1
- data/lib/rails_admin/config/fields/types/serialized.rb +22 -0
- data/lib/rails_admin/config/fields/types/string.rb +0 -2
- data/lib/rails_admin/config/fields/types/text.rb +1 -3
- data/lib/rails_admin/config/fields.rb +2 -1
- data/lib/rails_admin/config/groupable.rb +18 -0
- data/lib/rails_admin/config/has_fields.rb +1 -1
- data/lib/rails_admin/extensions/history/history.rb +1 -1
- data/lib/rails_admin/version.rb +1 -1
- data/spec/controllers/main_controller_spec.rb +67 -1
- data/spec/integration/basic/list/rails_admin_basic_list_spec.rb +2 -1
- data/spec/unit/adapters/active_record_spec.rb +22 -0
- data/spec/unit/config/actions_spec.rb +4 -0
- metadata +11 -193
- data/lib/rails_admin/config/fields/groupable.rb +0 -25
@@ -40,6 +40,7 @@ describe RailsAdmin::Adapters::ActiveRecord do
|
|
40
40
|
@profile = RailsAdmin::AbstractModel.new(ARProfile)
|
41
41
|
@comment = RailsAdmin::AbstractModel.new(ARComment)
|
42
42
|
end
|
43
|
+
|
43
44
|
|
44
45
|
describe '#associations' do
|
45
46
|
it 'lists associations' do
|
@@ -50,4 +51,25 @@ describe RailsAdmin::Adapters::ActiveRecord do
|
|
50
51
|
(@post.associations + @blog.associations + @user.associations).map{|a|a[:type]}.uniq.map(&:to_s).sort.should == ['belongs_to', 'has_and_belongs_to_many', 'has_many', 'has_one']
|
51
52
|
end
|
52
53
|
end
|
54
|
+
|
55
|
+
|
56
|
+
describe '#all' do
|
57
|
+
context 'filters on dates' do
|
58
|
+
it 'lists elements within outbound limits' do
|
59
|
+
date_format = I18n.t("admin.misc.filter_date_format", :default => I18n.t("admin.misc.filter_date_format", :locale => :en)).gsub('dd', '%d').gsub('mm', '%m').gsub('yy', '%Y')
|
60
|
+
|
61
|
+
FieldTest.create!(:date_field => Date.strptime("01/01/2012", date_format))
|
62
|
+
FieldTest.create!(:date_field => Date.strptime("01/02/2012", date_format))
|
63
|
+
FieldTest.create!(:date_field => Date.strptime("01/03/2012", date_format))
|
64
|
+
FieldTest.create!(:date_field => Date.strptime("01/04/2012", date_format))
|
65
|
+
RailsAdmin.config(FieldTest).abstract_model.all(:filters => { "date_field" => { "1" => { :v => ["", "01/02/2012", "01/03/2012"], :o => 'between' } } } ).count.should == 2
|
66
|
+
RailsAdmin.config(FieldTest).abstract_model.all(:filters => { "date_field" => { "1" => { :v => ["", "01/02/2012", "01/02/2012"], :o => 'between' } } } ).count.should == 1
|
67
|
+
RailsAdmin.config(FieldTest).abstract_model.all(:filters => { "date_field" => { "1" => { :v => ["", "01/03/2012", ""], :o => 'between' } } } ).count.should == 2
|
68
|
+
RailsAdmin.config(FieldTest).abstract_model.all(:filters => { "date_field" => { "1" => { :v => ["", "", "01/02/2012"], :o => 'between' } } } ).count.should == 2
|
69
|
+
RailsAdmin.config(FieldTest).abstract_model.all(:filters => { "date_field" => { "1" => { :v => ["01/02/2012"], :o => 'default' } } } ).count.should == 1
|
70
|
+
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
53
75
|
end
|
@@ -27,6 +27,10 @@ describe RailsAdmin::Config::Actions do
|
|
27
27
|
RailsAdmin::Config::Actions.find(:show).should be_a(RailsAdmin::Config::Actions::Show)
|
28
28
|
end
|
29
29
|
|
30
|
+
it 'should return nil when no action is found by the custom key' do
|
31
|
+
RailsAdmin::Config::Actions.find(:non_existent_action_key).should be_nil
|
32
|
+
end
|
33
|
+
|
30
34
|
it 'should return visible action passing binding if controller binding is given, and pass action visible or not if no' do
|
31
35
|
RailsAdmin.config do |config|
|
32
36
|
config.actions do
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obitum-rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Erik Michaels-Ober
|
@@ -18,17 +17,16 @@ autorequire:
|
|
18
17
|
bindir: bin
|
19
18
|
cert_chain: []
|
20
19
|
|
21
|
-
date: 2012-
|
20
|
+
date: 2012-03-11 00:00:00 +00:00
|
21
|
+
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
name: bbenezech-nested_form
|
25
25
|
prerelease: false
|
26
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
27
|
requirements:
|
29
28
|
- - ~>
|
30
29
|
- !ruby/object:Gem::Version
|
31
|
-
hash: 21
|
32
30
|
segments:
|
33
31
|
- 0
|
34
32
|
- 0
|
@@ -40,11 +38,9 @@ dependencies:
|
|
40
38
|
name: sass-rails
|
41
39
|
prerelease: false
|
42
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
41
|
requirements:
|
45
42
|
- - ~>
|
46
43
|
- !ruby/object:Gem::Version
|
47
|
-
hash: 5
|
48
44
|
segments:
|
49
45
|
- 3
|
50
46
|
- 1
|
@@ -55,11 +51,9 @@ dependencies:
|
|
55
51
|
name: bootstrap-sass
|
56
52
|
prerelease: false
|
57
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
54
|
requirements:
|
60
55
|
- - ~>
|
61
56
|
- !ruby/object:Gem::Version
|
62
|
-
hash: 3
|
63
57
|
segments:
|
64
58
|
- 2
|
65
59
|
- 0
|
@@ -70,11 +64,9 @@ dependencies:
|
|
70
64
|
name: builder
|
71
65
|
prerelease: false
|
72
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
67
|
requirements:
|
75
68
|
- - ~>
|
76
69
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 7
|
78
70
|
segments:
|
79
71
|
- 3
|
80
72
|
- 0
|
@@ -85,11 +77,9 @@ dependencies:
|
|
85
77
|
name: coffee-rails
|
86
78
|
prerelease: false
|
87
79
|
requirement: &id005 !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
80
|
requirements:
|
90
81
|
- - ~>
|
91
82
|
- !ruby/object:Gem::Version
|
92
|
-
hash: 5
|
93
83
|
segments:
|
94
84
|
- 3
|
95
85
|
- 1
|
@@ -100,11 +90,9 @@ dependencies:
|
|
100
90
|
name: haml
|
101
91
|
prerelease: false
|
102
92
|
requirement: &id006 !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
93
|
requirements:
|
105
94
|
- - ~>
|
106
95
|
- !ruby/object:Gem::Version
|
107
|
-
hash: 5
|
108
96
|
segments:
|
109
97
|
- 3
|
110
98
|
- 1
|
@@ -115,11 +103,9 @@ dependencies:
|
|
115
103
|
name: jquery-rails
|
116
104
|
prerelease: false
|
117
105
|
requirement: &id007 !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
106
|
requirements:
|
120
107
|
- - ">="
|
121
108
|
- !ruby/object:Gem::Version
|
122
|
-
hash: 15
|
123
109
|
segments:
|
124
110
|
- 1
|
125
111
|
- 0
|
@@ -130,11 +116,9 @@ dependencies:
|
|
130
116
|
name: kaminari
|
131
117
|
prerelease: false
|
132
118
|
requirement: &id008 !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
119
|
requirements:
|
135
120
|
- - ~>
|
136
121
|
- !ruby/object:Gem::Version
|
137
|
-
hash: 19
|
138
122
|
segments:
|
139
123
|
- 0
|
140
124
|
- 12
|
@@ -145,11 +129,9 @@ dependencies:
|
|
145
129
|
name: rack-pjax
|
146
130
|
prerelease: false
|
147
131
|
requirement: &id009 !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
132
|
requirements:
|
150
133
|
- - ~>
|
151
134
|
- !ruby/object:Gem::Version
|
152
|
-
hash: 1
|
153
135
|
segments:
|
154
136
|
- 0
|
155
137
|
- 5
|
@@ -160,11 +142,9 @@ dependencies:
|
|
160
142
|
name: rails
|
161
143
|
prerelease: false
|
162
144
|
requirement: &id010 !ruby/object:Gem::Requirement
|
163
|
-
none: false
|
164
145
|
requirements:
|
165
146
|
- - ~>
|
166
147
|
- !ruby/object:Gem::Version
|
167
|
-
hash: 5
|
168
148
|
segments:
|
169
149
|
- 3
|
170
150
|
- 1
|
@@ -175,11 +155,9 @@ dependencies:
|
|
175
155
|
name: remotipart
|
176
156
|
prerelease: false
|
177
157
|
requirement: &id011 !ruby/object:Gem::Requirement
|
178
|
-
none: false
|
179
158
|
requirements:
|
180
159
|
- - ~>
|
181
160
|
- !ruby/object:Gem::Version
|
182
|
-
hash: 15
|
183
161
|
segments:
|
184
162
|
- 1
|
185
163
|
- 0
|
@@ -190,11 +168,9 @@ dependencies:
|
|
190
168
|
name: capybara
|
191
169
|
prerelease: false
|
192
170
|
requirement: &id012 !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
171
|
requirements:
|
195
172
|
- - ">="
|
196
173
|
- !ruby/object:Gem::Version
|
197
|
-
hash: 3
|
198
174
|
segments:
|
199
175
|
- 0
|
200
176
|
version: "0"
|
@@ -204,11 +180,9 @@ dependencies:
|
|
204
180
|
name: carrierwave
|
205
181
|
prerelease: false
|
206
182
|
requirement: &id013 !ruby/object:Gem::Requirement
|
207
|
-
none: false
|
208
183
|
requirements:
|
209
184
|
- - ">="
|
210
185
|
- !ruby/object:Gem::Version
|
211
|
-
hash: 3
|
212
186
|
segments:
|
213
187
|
- 0
|
214
188
|
version: "0"
|
@@ -218,11 +192,9 @@ dependencies:
|
|
218
192
|
name: devise
|
219
193
|
prerelease: false
|
220
194
|
requirement: &id014 !ruby/object:Gem::Requirement
|
221
|
-
none: false
|
222
195
|
requirements:
|
223
196
|
- - ">="
|
224
197
|
- !ruby/object:Gem::Version
|
225
|
-
hash: 3
|
226
198
|
segments:
|
227
199
|
- 0
|
228
200
|
version: "0"
|
@@ -232,11 +204,9 @@ dependencies:
|
|
232
204
|
name: dragonfly
|
233
205
|
prerelease: false
|
234
206
|
requirement: &id015 !ruby/object:Gem::Requirement
|
235
|
-
none: false
|
236
207
|
requirements:
|
237
208
|
- - ">="
|
238
209
|
- !ruby/object:Gem::Version
|
239
|
-
hash: 3
|
240
210
|
segments:
|
241
211
|
- 0
|
242
212
|
version: "0"
|
@@ -246,11 +216,9 @@ dependencies:
|
|
246
216
|
name: factory_girl
|
247
217
|
prerelease: false
|
248
218
|
requirement: &id016 !ruby/object:Gem::Requirement
|
249
|
-
none: false
|
250
219
|
requirements:
|
251
220
|
- - ">="
|
252
221
|
- !ruby/object:Gem::Version
|
253
|
-
hash: 3
|
254
222
|
segments:
|
255
223
|
- 0
|
256
224
|
version: "0"
|
@@ -260,11 +228,9 @@ dependencies:
|
|
260
228
|
name: generator_spec
|
261
229
|
prerelease: false
|
262
230
|
requirement: &id017 !ruby/object:Gem::Requirement
|
263
|
-
none: false
|
264
231
|
requirements:
|
265
232
|
- - ">="
|
266
233
|
- !ruby/object:Gem::Version
|
267
|
-
hash: 3
|
268
234
|
segments:
|
269
235
|
- 0
|
270
236
|
version: "0"
|
@@ -274,11 +240,9 @@ dependencies:
|
|
274
240
|
name: launchy
|
275
241
|
prerelease: false
|
276
242
|
requirement: &id018 !ruby/object:Gem::Requirement
|
277
|
-
none: false
|
278
243
|
requirements:
|
279
244
|
- - ">="
|
280
245
|
- !ruby/object:Gem::Version
|
281
|
-
hash: 3
|
282
246
|
segments:
|
283
247
|
- 0
|
284
248
|
version: "0"
|
@@ -288,11 +252,9 @@ dependencies:
|
|
288
252
|
name: mini_magick
|
289
253
|
prerelease: false
|
290
254
|
requirement: &id019 !ruby/object:Gem::Requirement
|
291
|
-
none: false
|
292
255
|
requirements:
|
293
256
|
- - ">="
|
294
257
|
- !ruby/object:Gem::Version
|
295
|
-
hash: 3
|
296
258
|
segments:
|
297
259
|
- 0
|
298
260
|
version: "0"
|
@@ -302,11 +264,9 @@ dependencies:
|
|
302
264
|
name: paperclip
|
303
265
|
prerelease: false
|
304
266
|
requirement: &id020 !ruby/object:Gem::Requirement
|
305
|
-
none: false
|
306
267
|
requirements:
|
307
268
|
- - ">="
|
308
269
|
- !ruby/object:Gem::Version
|
309
|
-
hash: 3
|
310
270
|
segments:
|
311
271
|
- 0
|
312
272
|
version: "0"
|
@@ -316,11 +276,9 @@ dependencies:
|
|
316
276
|
name: rspec-rails
|
317
277
|
prerelease: false
|
318
278
|
requirement: &id021 !ruby/object:Gem::Requirement
|
319
|
-
none: false
|
320
279
|
requirements:
|
321
280
|
- - ">="
|
322
281
|
- !ruby/object:Gem::Version
|
323
|
-
hash: 3
|
324
282
|
segments:
|
325
283
|
- 0
|
326
284
|
version: "0"
|
@@ -459,6 +417,7 @@ files:
|
|
459
417
|
- config/initializers/active_record_extensions.rb
|
460
418
|
- config/initializers/devise_patch.rb
|
461
419
|
- config/initializers/haml.rb
|
420
|
+
- config/locales/fr.yml
|
462
421
|
- config/locales/rails_admin.en.yml
|
463
422
|
- config/routes.rb
|
464
423
|
- lib/generators/rails_admin/install_generator.rb
|
@@ -493,8 +452,8 @@ files:
|
|
493
452
|
- lib/rails_admin/config/fields/factories/enum.rb
|
494
453
|
- lib/rails_admin/config/fields/factories/paperclip.rb
|
495
454
|
- lib/rails_admin/config/fields/factories/password.rb
|
455
|
+
- lib/rails_admin/config/fields/factories/serialized.rb
|
496
456
|
- lib/rails_admin/config/fields/group.rb
|
497
|
-
- lib/rails_admin/config/fields/groupable.rb
|
498
457
|
- lib/rails_admin/config/fields/types/all.rb
|
499
458
|
- lib/rails_admin/config/fields/types/belongs_to_association.rb
|
500
459
|
- lib/rails_admin/config/fields/types/boolean.rb
|
@@ -515,12 +474,14 @@ files:
|
|
515
474
|
- lib/rails_admin/config/fields/types/paperclip.rb
|
516
475
|
- lib/rails_admin/config/fields/types/password.rb
|
517
476
|
- lib/rails_admin/config/fields/types/polymorphic_association.rb
|
477
|
+
- lib/rails_admin/config/fields/types/serialized.rb
|
518
478
|
- lib/rails_admin/config/fields/types/string.rb
|
519
479
|
- lib/rails_admin/config/fields/types/text.rb
|
520
480
|
- lib/rails_admin/config/fields/types/time.rb
|
521
481
|
- lib/rails_admin/config/fields/types/timestamp.rb
|
522
482
|
- lib/rails_admin/config/fields/types.rb
|
523
483
|
- lib/rails_admin/config/fields.rb
|
484
|
+
- lib/rails_admin/config/groupable.rb
|
524
485
|
- lib/rails_admin/config/has_fields.rb
|
525
486
|
- lib/rails_admin/config/has_groups.rb
|
526
487
|
- lib/rails_admin/config/hideable.rb
|
@@ -553,146 +514,7 @@ files:
|
|
553
514
|
- lib/rails_admin.rb
|
554
515
|
- lib/tasks/prepare_ci_env.rake
|
555
516
|
- lib/tasks/rails_admin.rake
|
556
|
-
|
557
|
-
- spec/controllers/application_controller_spec.rb
|
558
|
-
- spec/controllers/main_controller_spec.rb
|
559
|
-
- spec/database_helpers.rb
|
560
|
-
- spec/dummy_app/app/assets/images/rails.png
|
561
|
-
- spec/dummy_app/app/assets/javascripts/application.js
|
562
|
-
- spec/dummy_app/app/assets/stylesheets/application.css
|
563
|
-
- spec/dummy_app/app/controllers/application_controller.rb
|
564
|
-
- spec/dummy_app/app/controllers/players_controller.rb
|
565
|
-
- spec/dummy_app/app/helpers/application_helper.rb
|
566
|
-
- spec/dummy_app/app/locales/models.en.yml
|
567
|
-
- spec/dummy_app/app/models/abstract.rb
|
568
|
-
- spec/dummy_app/app/models/ball.rb
|
569
|
-
- spec/dummy_app/app/models/category.rb
|
570
|
-
- spec/dummy_app/app/models/cms/basic_page.rb
|
571
|
-
- spec/dummy_app/app/models/cms/unscoped_page.rb
|
572
|
-
- spec/dummy_app/app/models/cms.rb
|
573
|
-
- spec/dummy_app/app/models/comment.rb
|
574
|
-
- spec/dummy_app/app/models/division.rb
|
575
|
-
- spec/dummy_app/app/models/draft.rb
|
576
|
-
- spec/dummy_app/app/models/fan.rb
|
577
|
-
- spec/dummy_app/app/models/field_test.rb
|
578
|
-
- spec/dummy_app/app/models/hardball.rb
|
579
|
-
- spec/dummy_app/app/models/league.rb
|
580
|
-
- spec/dummy_app/app/models/nested_field_test.rb
|
581
|
-
- spec/dummy_app/app/models/player.rb
|
582
|
-
- spec/dummy_app/app/models/rel_test.rb
|
583
|
-
- spec/dummy_app/app/models/team.rb
|
584
|
-
- spec/dummy_app/app/models/user.rb
|
585
|
-
- spec/dummy_app/app/uploaders/carrierwave_uploader.rb
|
586
|
-
- spec/dummy_app/app/views/layouts/application.html.erb
|
587
|
-
- spec/dummy_app/app/views/players/show.html.haml
|
588
|
-
- spec/dummy_app/config/application.rb
|
589
|
-
- spec/dummy_app/config/boot.rb
|
590
|
-
- spec/dummy_app/config/database.yml
|
591
|
-
- spec/dummy_app/config/environment.rb
|
592
|
-
- spec/dummy_app/config/environments/development.rb
|
593
|
-
- spec/dummy_app/config/environments/production.rb
|
594
|
-
- spec/dummy_app/config/environments/test.rb
|
595
|
-
- spec/dummy_app/config/initializers/backtrace_silencers.rb
|
596
|
-
- spec/dummy_app/config/initializers/devise.rb
|
597
|
-
- spec/dummy_app/config/initializers/inflections.rb
|
598
|
-
- spec/dummy_app/config/initializers/mime_types.rb
|
599
|
-
- spec/dummy_app/config/initializers/rails_admin.rb
|
600
|
-
- spec/dummy_app/config/initializers/secret_token.rb
|
601
|
-
- spec/dummy_app/config/initializers/session_store.rb
|
602
|
-
- spec/dummy_app/config/initializers/wrap_parameters.rb
|
603
|
-
- spec/dummy_app/config/routes.rb
|
604
|
-
- spec/dummy_app/config.ru
|
605
|
-
- spec/dummy_app/db/migrate/00000000000001_create_divisions_migration.rb
|
606
|
-
- spec/dummy_app/db/migrate/00000000000002_create_drafts_migration.rb
|
607
|
-
- spec/dummy_app/db/migrate/00000000000003_create_leagues_migration.rb
|
608
|
-
- spec/dummy_app/db/migrate/00000000000004_create_players_migration.rb
|
609
|
-
- spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
|
610
|
-
- spec/dummy_app/db/migrate/00000000000006_devise_create_users.rb
|
611
|
-
- spec/dummy_app/db/migrate/00000000000007_create_histories_table.rb
|
612
|
-
- spec/dummy_app/db/migrate/00000000000008_create_fans_migration.rb
|
613
|
-
- spec/dummy_app/db/migrate/00000000000009_create_fans_teams_migration.rb
|
614
|
-
- spec/dummy_app/db/migrate/00000000000010_add_revenue_to_team_migration.rb
|
615
|
-
- spec/dummy_app/db/migrate/00000000000011_add_suspended_to_player_migration.rb
|
616
|
-
- spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
|
617
|
-
- spec/dummy_app/db/migrate/00000000000013_add_roles_to_user.rb
|
618
|
-
- spec/dummy_app/db/migrate/00000000000014_add_color_to_team_migration.rb
|
619
|
-
- spec/dummy_app/db/migrate/20101223222233_create_rel_tests.rb
|
620
|
-
- spec/dummy_app/db/migrate/20110103205808_create_comments.rb
|
621
|
-
- spec/dummy_app/db/migrate/20110123042530_rename_histories_to_rails_admin_histories.rb
|
622
|
-
- spec/dummy_app/db/migrate/20110224184303_create_field_tests.rb
|
623
|
-
- spec/dummy_app/db/migrate/20110328193014_create_cms_basic_pages.rb
|
624
|
-
- spec/dummy_app/db/migrate/20110329183136_remove_league_id_from_teams.rb
|
625
|
-
- spec/dummy_app/db/migrate/20110607152842_add_format_to_field_test.rb
|
626
|
-
- spec/dummy_app/db/migrate/20110714095433_create_balls.rb
|
627
|
-
- spec/dummy_app/db/migrate/20110831090841_add_protected_field_and_restricted_field_to_field_tests.rb
|
628
|
-
- spec/dummy_app/db/migrate/20110901131551_change_division_primary_key.rb
|
629
|
-
- spec/dummy_app/db/migrate/20110901142530_rename_league_id_foreign_key_on_divisions.rb
|
630
|
-
- spec/dummy_app/db/migrate/20110901150912_set_primary_key_not_null_for_divisions.rb
|
631
|
-
- spec/dummy_app/db/migrate/20110901154834_change_length_for_rails_admin_histories.rb
|
632
|
-
- spec/dummy_app/db/migrate/20111103174459_create_unscoped_pages.rb
|
633
|
-
- spec/dummy_app/db/migrate/20111108143642_add_dragonfly_and_carrierwave_to_field_tests.rb
|
634
|
-
- spec/dummy_app/db/migrate/20111115041025_add_type_to_balls.rb
|
635
|
-
- spec/dummy_app/db/migrate/20111123092549_create_nested_field_tests.rb
|
636
|
-
- spec/dummy_app/db/migrate/20111130075338_add_dragonfly_asset_name_to_field_tests.rb
|
637
|
-
- spec/dummy_app/db/migrate/20111215083258_create_foo_bars.rb
|
638
|
-
- spec/dummy_app/db/migrate/20120117151733_add_custom_field_to_teams.rb
|
639
|
-
- spec/dummy_app/db/migrate/20120118122004_add_categories.rb
|
640
|
-
- spec/dummy_app/db/seeds.rb
|
641
|
-
- spec/dummy_app/doc/README_FOR_APP
|
642
|
-
- spec/dummy_app/Gemfile
|
643
|
-
- spec/dummy_app/public/404.html
|
644
|
-
- spec/dummy_app/public/422.html
|
645
|
-
- spec/dummy_app/public/500.html
|
646
|
-
- spec/dummy_app/public/favicon.ico
|
647
|
-
- spec/dummy_app/public/robots.txt
|
648
|
-
- spec/dummy_app/public/system/dragonfly/development/2011/11/24/10_36_27_888_Pensive_Parakeet.jpg
|
649
|
-
- spec/dummy_app/public/system/dragonfly/development/2011/11/24/10_36_27_888_Pensive_Parakeet.jpg.meta
|
650
|
-
- spec/dummy_app/public/system/dragonfly/development/2011/11/30/08_54_39_906_Costa_Rican_Frog.jpg
|
651
|
-
- spec/dummy_app/public/system/dragonfly/development/2011/11/30/08_54_39_906_Costa_Rican_Frog.jpg.meta
|
652
|
-
- spec/dummy_app/public/system/paperclip_assets/1/original/Boston City Flow.jpg
|
653
|
-
- spec/dummy_app/public/system/paperclip_assets/1/thumb/Boston City Flow.jpg
|
654
|
-
- spec/dummy_app/public/system/paperclip_assets/3/original/Costa Rican Frog.jpg
|
655
|
-
- spec/dummy_app/public/system/paperclip_assets/3/thumb/Costa Rican Frog.jpg
|
656
|
-
- spec/dummy_app/public/system/paperclip_assets/6/original/liste-electorale.pdf
|
657
|
-
- spec/dummy_app/public/system/paperclip_assets/6/thumb/liste-electorale.pdf
|
658
|
-
- spec/dummy_app/public/uploads/field_test/carrierwave_asset/3/Boston_City_Flow.jpg
|
659
|
-
- spec/dummy_app/public/uploads/field_test/carrierwave_asset/3/thumb_Boston_City_Flow.jpg
|
660
|
-
- spec/dummy_app/public/uploads/field_test/carrierwave_asset/4/Costa_Rican_Frog.jpg
|
661
|
-
- spec/dummy_app/public/uploads/field_test/carrierwave_asset/4/thumb_Costa_Rican_Frog.jpg
|
662
|
-
- spec/dummy_app/public/uploads/field_test/carrierwave_asset/6/Pensive_Parakeet.jpg
|
663
|
-
- spec/dummy_app/public/uploads/field_test/carrierwave_asset/6/thumb_Pensive_Parakeet.jpg
|
664
|
-
- spec/dummy_app/Rakefile
|
665
|
-
- spec/dummy_app/script/rails
|
666
|
-
- spec/factories.rb
|
667
|
-
- spec/helpers/application_helper_spec.rb
|
668
|
-
- spec/integration/authorization/cancan_spec.rb
|
669
|
-
- spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb
|
670
|
-
- spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb
|
671
|
-
- spec/integration/basic/create/rails_admin_basic_create_spec.rb
|
672
|
-
- spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
|
673
|
-
- spec/integration/basic/delete/rails_admin_basic_delete_spec.rb
|
674
|
-
- spec/integration/basic/destroy/rails_admin_basic_destroy_spec.rb
|
675
|
-
- spec/integration/basic/edit/rails_admin_basic_edit_spec.rb
|
676
|
-
- spec/integration/basic/export/rails_admin_basic_export_spec.rb
|
677
|
-
- spec/integration/basic/list/rails_admin_basic_list_spec.rb
|
678
|
-
- spec/integration/basic/new/rails_admin_basic_new_spec.rb
|
679
|
-
- spec/integration/basic/new/rails_admin_namespaced_model_new_spec.rb
|
680
|
-
- spec/integration/basic/show/rails_admin_basic_show_spec.rb
|
681
|
-
- spec/integration/basic/update/rails_admin_basic_update_spec.rb
|
682
|
-
- spec/integration/config/edit/rails_admin_config_edit_spec.rb
|
683
|
-
- spec/integration/config/list/rails_admin_config_list_spec.rb
|
684
|
-
- spec/integration/config/show/rails_admin_config_show_spec.rb
|
685
|
-
- spec/integration/history/rails_admin_history_spec.rb
|
686
|
-
- spec/integration/rails_admin_spec.rb
|
687
|
-
- spec/integration/relation_spec.rb
|
688
|
-
- spec/spec_helper.rb
|
689
|
-
- spec/unit/adapters/active_record/abstract_object_spec.rb
|
690
|
-
- spec/unit/adapters/active_record_spec.rb
|
691
|
-
- spec/unit/config/actions_spec.rb
|
692
|
-
- spec/unit/config/fields/base_spec.rb
|
693
|
-
- spec/unit/config/model_spec.rb
|
694
|
-
- spec/unit/config/sections_spec.rb
|
695
|
-
- spec/unit/config_spec.rb
|
517
|
+
has_rdoc: true
|
696
518
|
homepage: https://github.com/sferik/rails_admin
|
697
519
|
licenses: []
|
698
520
|
|
@@ -702,20 +524,16 @@ rdoc_options: []
|
|
702
524
|
require_paths:
|
703
525
|
- lib
|
704
526
|
required_ruby_version: !ruby/object:Gem::Requirement
|
705
|
-
none: false
|
706
527
|
requirements:
|
707
528
|
- - ">="
|
708
529
|
- !ruby/object:Gem::Version
|
709
|
-
hash: 3
|
710
530
|
segments:
|
711
531
|
- 0
|
712
532
|
version: "0"
|
713
533
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
714
|
-
none: false
|
715
534
|
requirements:
|
716
535
|
- - ">="
|
717
536
|
- !ruby/object:Gem::Version
|
718
|
-
hash: 23
|
719
537
|
segments:
|
720
538
|
- 1
|
721
539
|
- 3
|
@@ -724,7 +542,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
724
542
|
requirements: []
|
725
543
|
|
726
544
|
rubyforge_project:
|
727
|
-
rubygems_version: 1.
|
545
|
+
rubygems_version: 1.3.6
|
728
546
|
signing_key:
|
729
547
|
specification_version: 3
|
730
548
|
summary: Admin for Rails
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'rails_admin/config/fields/group'
|
2
|
-
|
3
|
-
module RailsAdmin
|
4
|
-
module Config
|
5
|
-
module Fields
|
6
|
-
module Groupable
|
7
|
-
# Register a group instance variable and accessor methods for objects
|
8
|
-
# extending the has groups mixin. The extended objects must implement
|
9
|
-
# reader for a parent object which includes this module.
|
10
|
-
#
|
11
|
-
# @see RailsAdmin::Config::HasGroups.group
|
12
|
-
# @see RailsAdmin::Config::Fields::Group
|
13
|
-
def self.extended(obj)
|
14
|
-
obj.instance_variable_set("@group", obj.parent.group(:default))
|
15
|
-
class << obj
|
16
|
-
def group(name = nil)
|
17
|
-
@group = parent.group(name) unless name.nil?
|
18
|
-
@group
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|