activeadmin 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +2 -5
- data/CHANGELOG.md +13 -1
- data/app/assets/javascripts/active_admin/components/jquery.aa.checkbox-toggler.js.coffee +1 -1
- data/app/assets/javascripts/active_admin/components/jquery.aa.dropdown-menu.js.coffee +1 -1
- data/lib/active_admin/inputs/filter_string_input.rb +1 -1
- data/lib/active_admin/resource/action_items.rb +1 -1
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/views/index_as_table.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45c6ee86f21893e01b4a7da95f87eff301071cd6
|
4
|
+
data.tar.gz: 40ab9df25f437e685017a6f9d8794ad5e5b6f08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7605bc8de9525538dc8cc5125145857530be95830abbd55ff25d8243a2431c7d943d718f6d08cea1742a472a2ab81db2e130be918dce45ef21a549efee2c0a90
|
7
|
+
data.tar.gz: f7160c208b717e869584cb20b499605510d4d288683afbe685a3c11a5ef9bbaf997b3ceaf7cb1378ced949b51fa7d089779840134ac54547edd85bf499d82b41
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
script: bundle exec rake test
|
2
2
|
rvm:
|
3
3
|
- 1.9.3
|
4
|
-
- 2.
|
5
|
-
- 2.2.0
|
4
|
+
- 2.2
|
6
5
|
before_install:
|
7
6
|
- gem update --system
|
8
7
|
- gem --version
|
@@ -13,7 +12,5 @@ env:
|
|
13
12
|
- RAILS=3.2.14
|
14
13
|
matrix:
|
15
14
|
exclude:
|
16
|
-
- rvm: 2.
|
17
|
-
env: RAILS=3.0.20
|
18
|
-
- rvm: 2.2.0
|
15
|
+
- rvm: 2.2
|
19
16
|
env: RAILS=3.0.20
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
## 0-6-stable (unreleased) - [compare](https://github.com/gregbell/active_admin/compare/v0.6.
|
1
|
+
## 0-6-stable (unreleased) - [compare](https://github.com/gregbell/active_admin/compare/v0.6.6...0-6-stable)
|
2
|
+
|
3
|
+
## 0.6.6 - [compare](https://github.com/gregbell/active_admin/compare/v0.6.5...v0.6.6)
|
4
|
+
|
5
|
+
* Backport of [#3779][] from [@aaronsakowski][] by [@timoschilling][]
|
6
|
+
* Fix issue with model attribute matching metasearch method name [#3698][] by [@azach][]
|
7
|
+
* Fix default delete prompt on Rails 3.0.x [#3765][] by [@craigmcnamara][]
|
2
8
|
|
3
9
|
## 0.6.5 - [compare](https://github.com/gregbell/active_admin/compare/v0.6.4...v0.6.5)
|
4
10
|
|
@@ -936,6 +942,9 @@ of the highlights. 250 commits. Enough said.
|
|
936
942
|
[#2847]: https://github.com/activeadmin/activeadmin/issues/2847
|
937
943
|
[#3489]: https://github.com/activeadmin/activeadmin/issues/3489
|
938
944
|
[#3659]: https://github.com/activeadmin/activeadmin/issues/3659
|
945
|
+
[#3698]: https://github.com/activeadmin/activeadmin/issues/3698
|
946
|
+
[#3765]: https://github.com/activeadmin/activeadmin/issues/3765
|
947
|
+
[#3779]: https://github.com/activeadmin/activeadmin/issues/3779
|
939
948
|
[@Bishop]: https://github.com/Bishop
|
940
949
|
[@BoboFraggins]: https://github.com/BoboFraggins
|
941
950
|
[@DMajrekar]: https://github.com/DMajrekar
|
@@ -945,15 +954,18 @@ of the highlights. 250 commits. Enough said.
|
|
945
954
|
[@TBAA]: https://github.com/TBAA
|
946
955
|
[@TiagoCardoso1983]: https://github.com/TiagoCardoso1983
|
947
956
|
[@ZequeZ]: https://github.com/ZequeZ
|
957
|
+
[@aaronsakowski]: https://github.com/aaronsakowski
|
948
958
|
[@adrienkohlbecker]: https://github.com/adrienkohlbecker
|
949
959
|
[@ai]: https://github.com/ai
|
950
960
|
[@amiel]: https://github.com/amiel
|
961
|
+
[@azach]: https://github.com/azach
|
951
962
|
[@ball-hayden]: https://github.com/ball-hayden
|
952
963
|
[@bobbytables]: https://github.com/bobbytables
|
953
964
|
[@caifara]: https://github.com/caifara
|
954
965
|
[@cknoxrun]: https://github.com/cknoxrun
|
955
966
|
[@comboy]: https://github.com/comboy
|
956
967
|
[@coreyward]: https://github.com/coreyward
|
968
|
+
[@craigmcnamara]: https://github.com/craigmcnamara
|
957
969
|
[@dapi]: https://github.com/dapi
|
958
970
|
[@dbussin]: https://github.com/dbussin
|
959
971
|
[@developer88]: https://github.com/developer88
|
@@ -10,7 +10,7 @@ window.ActiveAdmin.DropdownMenu = class ActiveAdmin.DropdownMenu
|
|
10
10
|
onClickActionItemCallback: null
|
11
11
|
}
|
12
12
|
|
13
|
-
@options = $.extend({}, defaults, options)
|
13
|
+
@options = $.extend({}, defaults, @options)
|
14
14
|
|
15
15
|
@$menuButton = @$element.find(".dropdown_menu_button")
|
16
16
|
@$menuList = @$element.find(".dropdown_menu_list_wrapper")
|
@@ -9,7 +9,7 @@ module ActiveAdmin
|
|
9
9
|
# If the filter method includes a search condition, build a normal string search field.
|
10
10
|
# Else, build a search field with a companion dropdown to choose a search condition from.
|
11
11
|
def to_html
|
12
|
-
if @object.respond_to?
|
12
|
+
if @object.methods.exclude?(method) && @object.respond_to?(method)
|
13
13
|
input_wrapping do
|
14
14
|
label_html <<
|
15
15
|
builder.text_field(method, input_html_options)
|
@@ -70,7 +70,7 @@ module ActiveAdmin
|
|
70
70
|
if controller.action_methods.include?("destroy") && authorized?(ActiveAdmin::Auth::DESTROY, resource)
|
71
71
|
link_to(I18n.t('active_admin.delete_model', :model => active_admin_config.resource_label),
|
72
72
|
resource_path(resource),
|
73
|
-
:method => :delete,
|
73
|
+
:method => :delete, 'data-confirm' => I18n.t('active_admin.delete_confirmation'))
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end
|
data/lib/active_admin/version.rb
CHANGED
@@ -194,7 +194,7 @@ module ActiveAdmin
|
|
194
194
|
links << link_to(I18n.t('active_admin.edit'), edit_resource_path(resource), :class => "member_link edit_link")
|
195
195
|
end
|
196
196
|
if controller.action_methods.include?('destroy') && authorized?(ActiveAdmin::Auth::DESTROY, resource)
|
197
|
-
links << link_to(I18n.t('active_admin.delete'), resource_path(resource), :method => :delete,
|
197
|
+
links << link_to(I18n.t('active_admin.delete'), resource_path(resource), :method => :delete, 'data-confirm' => I18n.t('active_admin.delete_confirmation'), :class => "member_link delete_link")
|
198
198
|
end
|
199
199
|
links
|
200
200
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Bell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arbre
|