lalala 4.0.0.dev.354 → 4.0.0.dev.357
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lalala/admin/pages.rb +10 -0
- data/lib/lalala/version.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: 1e51e24955c44a2fcdeadfb94405253f2f660483
|
4
|
+
data.tar.gz: bc9b9e1104d34d292b37b162a2b5042b7fe51b98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc7ac9b3b48468e93782ed15480846368bcc6ecef40610cb7996c638707fab167af553ba4c5713c5c28d961230d8d64b1e17654d70f802acd71a233b2be7c2d
|
7
|
+
data.tar.gz: 5b735cbb6adacccde7cbef2d3dc669953fae16dee8cc8999c7877e642ccf447d4f2fb5db88bb3b7f07b58368f4a9edd25ca7303c6bdb220205e01a230b6abc1d
|
data/lib/lalala/admin/pages.rb
CHANGED
@@ -4,8 +4,18 @@ if defined?(ActiveAdmin) and defined?(ApplicationPage)
|
|
4
4
|
|
5
5
|
config.filters = false
|
6
6
|
config.paginate = false
|
7
|
+
|
8
|
+
# Remove action buttons in topbar
|
7
9
|
config.clear_action_items!
|
8
10
|
|
11
|
+
# Edit button in topbar only on show
|
12
|
+
action_item :only => [:show] do
|
13
|
+
if controller.action_methods.include?('edit')
|
14
|
+
link_to(I18n.t('active_admin.edit_model', :model => active_admin_config.resource_name), edit_resource_path)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
9
19
|
#
|
10
20
|
# Index
|
11
21
|
#
|
data/lib/lalala/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.dev.
|
4
|
+
version: 4.0.0.dev.357
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activeadmin
|