rails_admin 0.4.6 → 0.4.7
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.
Potentially problematic release.
This version of rails_admin might be problematic. Click here for more details.
- data.tar.gz.sig +0 -0
- data/app/assets/javascripts/rails_admin/jquery.ui.timepicker.js +222 -218
- data/app/assets/javascripts/rails_admin/ui.coffee +7 -0
- data/app/assets/stylesheets/rails_admin/base/theming.scss +2 -1
- data/app/controllers/rails_admin/main_controller.rb +1 -1
- data/app/helpers/rails_admin/application_helper.rb +2 -1
- data/app/views/rails_admin/main/_form_filtering_multiselect.html.haml +1 -1
- data/app/views/rails_admin/main/_form_filtering_select.html.haml +2 -2
- data/app/views/rails_admin/main/_form_nested_many.html.haml +1 -1
- data/app/views/rails_admin/main/export.html.haml +6 -1
- data/lib/rails_admin/adapters/active_record.rb +4 -0
- data/lib/rails_admin/adapters/mongoid.rb +14 -6
- data/lib/rails_admin/config.rb +1 -1
- data/lib/rails_admin/config/fields/base.rb +20 -2
- data/lib/rails_admin/config/fields/types/belongs_to_association.rb +8 -0
- data/lib/rails_admin/config/fields/types/has_many_association.rb +4 -0
- data/lib/rails_admin/config/fields/types/has_one_association.rb +9 -0
- data/lib/rails_admin/config/fields/types/serialized.rb +3 -1
- data/lib/rails_admin/config/model.rb +4 -0
- data/lib/rails_admin/version.rb +1 -1
- data/spec/controllers/rails_admin/main_controller_spec.rb +18 -0
- data/spec/dummy_app/app/mongoid/field_test.rb +2 -1
- data/spec/integration/config/edit/rails_admin_config_edit_spec.rb +74 -0
- data/spec/rails_admin/adapters/mongoid_spec.rb +16 -4
- data/spec/rails_admin/config/fields/base_spec.rb +12 -0
- data/spec/rails_admin/config_spec.rb +15 -0
- metadata +6 -4
- metadata.gz.sig +0 -0
@@ -267,6 +267,21 @@ describe RailsAdmin::Config do
|
|
267
267
|
|
268
268
|
expect(RailsAdmin.config.visible_models(:controller => double(:_current_user => double(:role => :admin), :authorized? => true)).map(&:abstract_model).map(&:model)).to match_array [FieldTest, Comment]
|
269
269
|
end
|
270
|
+
|
271
|
+
it "basically does not contain embedded model except model using recursively_embeds_many or recursively_embeds_one", :mongoid => true do
|
272
|
+
class RecursivelyEmbedsOne
|
273
|
+
include Mongoid::Document
|
274
|
+
recursively_embeds_one
|
275
|
+
end
|
276
|
+
class RecursivelyEmbedsMany
|
277
|
+
include Mongoid::Document
|
278
|
+
recursively_embeds_many
|
279
|
+
end
|
280
|
+
RailsAdmin.config do |config|
|
281
|
+
config.included_models = [FieldTest, Comment, Embed, RecursivelyEmbedsMany, RecursivelyEmbedsOne]
|
282
|
+
end
|
283
|
+
expect(RailsAdmin.config.visible_models(:controller => double(:_current_user => double(:role => :admin), :authorized? => true)).map(&:abstract_model).map(&:model)).to match_array [FieldTest, Comment, RecursivelyEmbedsMany, RecursivelyEmbedsOne]
|
284
|
+
end
|
270
285
|
end
|
271
286
|
end
|
272
287
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -39,7 +39,7 @@ cert_chain:
|
|
39
39
|
U0xxV3ZRUnNCbHlwSGZoczZKSnVMbHlaUEdoVTNSL3YKU2YzbFZLcEJDV2dS
|
40
40
|
cEdUdnk0NVhWcEIrNTl5MzNQSm1FdVExUFRFT1l2UXlhbzlVS01BQWFBTi83
|
41
41
|
cVdRdGpsMApobHc9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
42
|
-
date: 2013-
|
42
|
+
date: 2013-04-14 00:00:00.000000000 Z
|
43
43
|
dependencies:
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: bootstrap-sass
|
@@ -726,6 +726,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
726
726
|
- - ! '>='
|
727
727
|
- !ruby/object:Gem::Version
|
728
728
|
version: '0'
|
729
|
+
segments:
|
730
|
+
- 0
|
731
|
+
hash: -2375057804005378306
|
729
732
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
730
733
|
none: false
|
731
734
|
requirements:
|
@@ -734,7 +737,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
734
737
|
version: 1.3.6
|
735
738
|
requirements: []
|
736
739
|
rubyforge_project:
|
737
|
-
rubygems_version: 1.8.
|
740
|
+
rubygems_version: 1.8.23
|
738
741
|
signing_key:
|
739
742
|
specification_version: 3
|
740
743
|
summary: Admin for Rails
|
@@ -928,4 +931,3 @@ test_files:
|
|
928
931
|
- spec/rails_admin/config_spec.rb
|
929
932
|
- spec/rails_admin/support/csv_converter_spec.rb
|
930
933
|
- spec/spec_helper.rb
|
931
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|