ecm_staff2 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/de.yml +1 -0
- data/config/routes.rb +7 -3
- data/lib/ecm/staff/version.rb +1 -1
- data/lib/ecm_staff2.rb +0 -1
- metadata +2 -3
- data/lib/ecm/staff/routing.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f74bbb1b554ec04f7963934bba4cb55f0a86712d
|
4
|
+
data.tar.gz: 4740aef068369f7fb2ead41183998b48838269f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a6381eaec3198c36a7d045b541049f439b657e5f6b3f2533bf79ba71181f30a7f365b98c5e3635e2e4729095c03c963c8b24f10f842c3cecc429bd64bbff14c
|
7
|
+
data.tar.gz: 93813b0f34c73ba472b610e2013b115860b5ade78f7cf3088648d2ffcd5bb971b9c6ecdaecdcd5c79b3ac11d7dd70adaab3a05ac1aeb58ac9f29de8cb170c0f5
|
data/config/locales/de.yml
CHANGED
data/config/routes.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
Ecm::Staff::Engine.routes.draw do
|
2
2
|
localized do
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
scope :ecm_staff do
|
4
|
+
resources :organisations, only: [:show, :index]
|
5
|
+
resources :business_units, only: [:show, :index]
|
6
|
+
resources :people, only: [:show, :index]
|
7
|
+
|
8
|
+
root to: 'people#index'
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
data/lib/ecm/staff/version.rb
CHANGED
data/lib/ecm_staff2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_staff2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
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: 2017-
|
11
|
+
date: 2017-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -123,7 +123,6 @@ files:
|
|
123
123
|
- lib/ecm/staff.rb
|
124
124
|
- lib/ecm/staff/configuration.rb
|
125
125
|
- lib/ecm/staff/engine.rb
|
126
|
-
- lib/ecm/staff/routing.rb
|
127
126
|
- lib/ecm/staff/version.rb
|
128
127
|
- lib/ecm_staff2.rb
|
129
128
|
- lib/tasks/ecm/staff_tasks.rake
|
data/lib/ecm/staff/routing.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module Ecm::Staff
|
2
|
-
class Routing
|
3
|
-
def self.routes(router, options = {})
|
4
|
-
options.reverse_merge!(
|
5
|
-
{ organisations_actions: [:index, :show],
|
6
|
-
business_units_actions: [:index, :show],
|
7
|
-
people_actions: [:index, :show],
|
8
|
-
}
|
9
|
-
)
|
10
|
-
|
11
|
-
router.resources :ecm_staff_organisations, only: options[:organisations_actions],
|
12
|
-
controller: 'ecm/staff/organisations'
|
13
|
-
router.resources :ecm_staff_business_units, only: options[:business_units_actions],
|
14
|
-
controller: 'ecm/staff/business_units'
|
15
|
-
router.resources :ecm_staff_people, only: options[:people_actions],
|
16
|
-
controller: 'ecm/staff/people'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|