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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad3fc53aaf27720e4e3c78c9c72c1f65995d1280
4
- data.tar.gz: 59e0b2c01679d873ec6649926537a701361394d6
3
+ metadata.gz: 1e51e24955c44a2fcdeadfb94405253f2f660483
4
+ data.tar.gz: bc9b9e1104d34d292b37b162a2b5042b7fe51b98
5
5
  SHA512:
6
- metadata.gz: e7110b864f5c0ad7c33a78bc728c0565ade325a36937db8e0465dadcd6b64d73f922521804f82c74367cb9e240ce223b3d227a1d08babb6846a416641fd58239
7
- data.tar.gz: 2a8ea060e39b3431e69c09f8ee3278fe927bc1fd2978ef00bd063bcc6816cfa1345562df1fa024d74e19c21584e4fa01c2f01d8e8458e09c0c687d8ea02dc995
6
+ metadata.gz: 0cc7ac9b3b48468e93782ed15480846368bcc6ecef40610cb7996c638707fab167af553ba4c5713c5c28d961230d8d64b1e17654d70f802acd71a233b2be7c2d
7
+ data.tar.gz: 5b735cbb6adacccde7cbef2d3dc669953fae16dee8cc8999c7877e642ccf447d4f2fb5db88bb3b7f07b58368f4a9edd25ca7303c6bdb220205e01a230b6abc1d
@@ -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
  #
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.0.0"
3
- BUILD = "354"
3
+ BUILD = "357"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
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.354
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-09-26 00:00:00.000000000 Z
16
+ date: 2014-10-01 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activeadmin