ecm_time_tracking_backend 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -2
- data/app/controllers/ecm/time_tracking/backend/entries_controller.rb +1 -1
- data/config/initializers/assets.rb +1 -1
- data/config/routes.rb +1 -1
- data/lib/ecm/time_tracking/backend/configuration.rb +4 -4
- data/lib/ecm/time_tracking/backend/version.rb +1 -1
- data/lib/ecm_time_tracking_backend.rb +2 -2
- data/lib/generators/ecm/time_tracking/backend/install/install_generator.rb +1 -1
- data/lib/generators/ecm/time_tracking/backend/install/templates/initializer.rb +15 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1dfbaf0a212a615c72710a50357857005ed7e29
|
4
|
+
data.tar.gz: 82757d791b96a9a270242ef5a8c051ccc09213c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63c697d3852d0d87a76029ecfb83dc9ea31400046f28bb6af5d920adf8f52d671112139e1c407e2c893c58a20bd6f14bebc6dfd1541b00495027227c06da380b
|
7
|
+
data.tar.gz: f38c713e6880c3694acf74b3d9cfc04a25fea87dec7f50fcb0a41d79470adae9f29799e5906c2ea7c10a9d6d1a6f804f640653d4403e908f6ea521dee84d0fbe
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ module Ecm
|
|
9
9
|
private
|
10
10
|
|
11
11
|
def permitted_params
|
12
|
-
p = params.dup; p[:entry]
|
12
|
+
p = params.dup; p[:entry][:tracker_id] = current_user.id
|
13
13
|
p.require(:entry).permit(:begin_at, :end_at, :tracker_id, :break_length_in_minutes, :entry_type_id)
|
14
14
|
end
|
15
15
|
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
Rails.application.config.assets.precompile += %w( ecm_time_tracking_backend.css )
|
2
|
-
Rails.application.config.assets.precompile += %w( ecm_time_tracking_backend.js )
|
2
|
+
Rails.application.config.assets.precompile += %w( ecm_time_tracking_backend.js )
|
data/config/routes.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'ecm/time_tracking/backend'
|
2
|
+
require 'ecm/time_tracking/backend/engine'
|
@@ -1,21 +1,25 @@
|
|
1
|
-
Ecm::TimeTracking::Backend.configure do |config|
|
1
|
+
Ecm::TimeTracking::Backend.configure do |config|
|
2
2
|
# Set the resources, that will be shown in the backend menu.
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# Default: config.registered_controllers = -> {[
|
5
5
|
# Ecm::TimeTracking::Backend::EntryTypesController,
|
6
6
|
# Ecm::TimeTracking::Backend::EntriesController
|
7
7
|
# ]}
|
8
|
-
#
|
9
|
-
config.registered_controllers =
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
#
|
9
|
+
config.registered_controllers = lambda {
|
10
|
+
[
|
11
|
+
Ecm::TimeTracking::Backend::EntryTypesController,
|
12
|
+
Ecm::TimeTracking::Backend::EntriesController
|
13
|
+
]
|
14
|
+
}
|
13
15
|
|
14
16
|
# Set the services, that will be shown in the backend menu.
|
15
17
|
#
|
16
18
|
# Default: config.registered_services = -> {[
|
17
19
|
# ]}
|
18
|
-
#
|
19
|
-
config.registered_services =
|
20
|
-
|
21
|
-
|
20
|
+
#
|
21
|
+
config.registered_services = lambda {
|
22
|
+
[
|
23
|
+
]
|
24
|
+
}
|
25
|
+
end
|