administrador 0.0.13.pre → 0.0.14.pre

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
  SHA256:
3
- metadata.gz: 6e77b11418e4e578ee83998ec9515208bc9b70d789fcedff78f3cb93f773dfe4
4
- data.tar.gz: a54f3292eeeb4e70a8be07a8bd7e3c4fd58c433a5a36541dd1174e863f419746
3
+ metadata.gz: 125c510177365e3b501578e9aaeacc80e82e312cc2682e0540a3ba39c8d816dc
4
+ data.tar.gz: 93fcae275f226d6b38ab6ca1cf624f16bdaf7eca3c72162c27bb11fa08a3cac9
5
5
  SHA512:
6
- metadata.gz: 818b20eb38faba21b1c722c9634f7fe639f6ed975aee69f5710d56cbdc0cbf40c66c85635166db905fe5dea31b08d53959aa04a93b743c50a440be64ec978194
7
- data.tar.gz: 12fdebce6451d7a134b417482abe67ccf407eba3720d8eb639dd0ea8a648b9b53b5580655aab77bc48147bf18944bd5a9b6b58c415ed20b2c5e53e7233b4579f
6
+ metadata.gz: ec6917964d9f1613f0aa4d1840bffd1f1e2d5b882dab3e9758e8cf4414d45752758e70acc94595670e5edf4ecdf93b0e4b6009b4e9c188ce397cf970cb04098a
7
+ data.tar.gz: a53a70ce874b6d3e21068667ccdf0ee5ddfa2f4c6477a3f3d0f2c8e12998c85762daaa14c1d55a69bf9a74138a588fdc161b32f1cd86d9d14d32512e5d806f18
@@ -2,6 +2,6 @@
2
2
  - id = "sidebar-#{sc.name.underscore.gsub('/', '-')}"
3
3
  - position = sc.sidebar_position || :right
4
4
  - size = sc.sidebar_size || '250px'
5
- - url = sc.sidebar_url || send(engine.router_name).url_for(controller: "/#{sc.name.underscore.gsub('_controller', '')}", action: :show, format: :html, only_path: true)
5
+ - url = sc.sidebar_url || send(engine.router_name).send("#{sc.name.demodulize.underscore.gsub('_controller', '').singularize}_path")
6
6
  - mode = sc.sidebar_mode || :modal
7
7
  %aside.py-2{ id: id, data: { sidebar: { position: position, size: size, state: :closed, mode: :modal, load: url } } }
@@ -12,6 +12,8 @@ en:
12
12
  title: "%{engine_name}"
13
13
  resources_controller:
14
14
  base:
15
+ edit:
16
+ title: "New %{resource_name}"
15
17
  edit_actions:
16
18
  back: "Back"
17
19
  index:
@@ -1,3 +1,3 @@
1
1
  module Administrador
2
- VERSION = '0.0.13.pre'.freeze
2
+ VERSION = '0.0.14.pre'.freeze
3
3
  end
@@ -5,7 +5,20 @@ Administrador.configure do |config|
5
5
  #
6
6
  config.resource_label_methods = [:administrador_title, :human, :name, :identifier, :to_s]
7
7
 
8
- # config.register_engine 'Ecm::Blog::Backend::Engine', {}
8
+ # All controllers (for resources, services, sidebars, home, etc.) inherit
9
+ # from this controller.
10
+ #
11
+ # Default: config.base_controller_class_name = '::ApplicationController'
12
+ #
13
+ config.base_controller_class_name = '::ApplicationController'
9
14
 
10
- # config.base_controller_class_name = '::ApplicationController'
15
+ # Enable additional features here.
16
+ #
17
+ # config.enable_feature(:kaminari, {})
18
+ # config.enable_feature(:rao_query, {})
19
+
20
+ # Engines that are registered will be shown in the administrador main menu
21
+ # sidebar. Additionally they can register sidebars.
22
+ #
23
+ # config.register_engine 'Ecm::Blog::Backend::Engine', {}
11
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrador
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13.pre
4
+ version: 0.0.14.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-12 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails