rails_admin_toggleable 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/rails_admin_toggleable/field.rb +4 -0
- data/lib/rails_admin_toggleable/version.rb +1 -1
- metadata +7 -10
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3b6c282c0e8b78fd7acce4f39772ce093625a7b1
|
4
|
+
data.tar.gz: 84711cb5319ce18e383f5d26093ba362f5dbf3f2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 75f05af11fd9332b04d2907818f98bba2fadaa3005a1e6ec61fa3aa3c726ec8ac553e4d85d57fd576403ef155c80cfbbc8d9119da77d7eae81e04d55d19ca846
|
7
|
+
data.tar.gz: 4a210b6a5eaef08d7cf88e797dcd00a57707be19eb533a4454c755b384aa73459a710cc4fffba496545e210841eb843f9c204cbcc4bfc8caaf9c6e0929e6f4b3
|
@@ -21,6 +21,8 @@ module RailsAdmin
|
|
21
21
|
'On'
|
22
22
|
when true
|
23
23
|
'Off'
|
24
|
+
else
|
25
|
+
'-'
|
24
26
|
end
|
25
27
|
end
|
26
28
|
|
@@ -32,6 +34,8 @@ module RailsAdmin
|
|
32
34
|
bindings[:view].link_to '✘'.html_safe, toggle_path(model_name: @abstract_model, id: bindings[:object].id, method: name, on: '1'), method: :post, class: 'badge badge-important'
|
33
35
|
when true
|
34
36
|
bindings[:view].link_to '✓'.html_safe, toggle_path(model_name: @abstract_model, id: bindings[:object].id, method: name, on: '0'), method: :post, class: 'badge badge-success'
|
37
|
+
else
|
38
|
+
%{<span class="badge">-</span>}
|
35
39
|
end.html_safe
|
36
40
|
end
|
37
41
|
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_toggleable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Gleb Tv
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-05-17 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Toggleable field for rails admin
|
15
14
|
email:
|
@@ -33,28 +32,26 @@ files:
|
|
33
32
|
- rails_admin_toggleable.gemspec
|
34
33
|
homepage: https://github.com/rs-pro/rails_admin_toggleable
|
35
34
|
licenses: []
|
35
|
+
metadata: {}
|
36
36
|
post_install_message:
|
37
37
|
rdoc_options: []
|
38
38
|
require_paths:
|
39
39
|
- lib
|
40
40
|
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
41
|
requirements:
|
43
|
-
- -
|
42
|
+
- - '>='
|
44
43
|
- !ruby/object:Gem::Version
|
45
44
|
version: '0'
|
46
45
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
46
|
requirements:
|
49
|
-
- -
|
47
|
+
- - '>='
|
50
48
|
- !ruby/object:Gem::Version
|
51
49
|
version: '0'
|
52
50
|
requirements: []
|
53
51
|
rubyforge_project:
|
54
|
-
rubygems_version:
|
52
|
+
rubygems_version: 2.0.3
|
55
53
|
signing_key:
|
56
|
-
specification_version:
|
54
|
+
specification_version: 4
|
57
55
|
summary: Make any boolean field easily toggleable on\off from index view in rails
|
58
56
|
admin
|
59
57
|
test_files: []
|
60
|
-
has_rdoc:
|