cmor_blog_backend 0.0.55.pre → 0.0.56.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: a8e796058ff937cf9093ec94148c3d753a20f5b16068302ce97441feb5bbd6d5
4
- data.tar.gz: 6e1581b6467cb00cf7e1f92c8052bf0a774f57fbb329fc060c8fe09056531ba3
3
+ metadata.gz: 1394b7b31e1a53fe925bed6ec5d3bf279ccfa9de4b3c7346382c0d9e98eb86bf
4
+ data.tar.gz: cdafc5c48a0864948212016667235e8450d41a9c924d111112060d0d19181bb0
5
5
  SHA512:
6
- metadata.gz: 4f650ec0d223df8671b76cbd53e9ff4cd1241a5c2f38e0bc9f07efb8905bedd799549b7bb9b4b025514b334769bb5b019b751f6ac448b96acb770b8b65595cef
7
- data.tar.gz: 28306ffb4b2d936bd428aadb3f7dae7de96c35aad992049b5bb92c2726d5831f2b30258153d3e63f6f0a382fe67a433dd6cff9d1f024772b8bc540dcdef105a1
6
+ metadata.gz: '0842a963bcfb4b76abe4c0575fbf6f969e098ceef54a55d42de470f694d58e0829ff3ae7bf5b214d0861a2437700b36a054bee8cb424c60f04581f29b02df6dd'
7
+ data.tar.gz: 592662ef517f4f493892b031c159565cfacffa298553e0e4284f51b0a2352c22f51437e472f64a3d7128524bd1e8f8f7f21869735256faba0cbd2ce2a6d1949d
@@ -6,6 +6,8 @@ module Cmor
6
6
  include Rao::ResourcesController::ActsAsPublishedConcern
7
7
  include Rao::ResourcesController::FriendlyIdConcern
8
8
 
9
+ include Cmor::Audits::ResourcesController::PaperTrailConcern if Cmor::Core.features?(:cmor_audits)
10
+
9
11
  helper Cmor::Tags::Backend::ApplicationHelper if Cmor::Core.features?(:cmor_tags)
10
12
 
11
13
  include Rao::Query::Controller::QueryConcern
@@ -1,9 +1,11 @@
1
1
  Cmor::Blog::Backend::Engine.routes.draw do
2
2
  resources :posts do
3
+ Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
3
4
  post :toggle_published, on: :member
4
5
  post :reposition, on: :member
5
6
  end
6
7
  resources :asset_details do
8
+ Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
7
9
  post :reposition, on: :member
8
10
  end
9
11
 
@@ -22,7 +22,7 @@ Cmor::Blog::Backend.configure do |config|
22
22
  # This proc is used in context of the PostsController to retrieve the current
23
23
  # user to userstamp created/updated posts.
24
24
  #
25
- # default: config.current_user_proc = ->(controller) { controller.send(:current_user) }
25
+ # default: config.current_user_proc = ->(controller) { controller.respond_to?(:current_user, true) ? controller.send(:current_user) : nil }
26
26
  #
27
- config.current_user_proc = ->(controller) { controller.send(:current_user) }
27
+ config.current_user_proc = ->(controller) { controller.respond_to?(:current_user, true) ? controller.send(:current_user) : nil }
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_blog_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.55.pre
4
+ version: 0.0.56.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: 2020-06-28 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.55.pre
33
+ version: 0.0.56.pre
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.55.pre
40
+ version: 0.0.56.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cmor_core_backend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.55.pre
47
+ version: 0.0.56.pre
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.55.pre
54
+ version: 0.0.56.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -324,14 +324,14 @@ dependencies:
324
324
  requirements:
325
325
  - - '='
326
326
  - !ruby/object:Gem::Version
327
- version: 0.0.55.pre
327
+ version: 0.0.56.pre
328
328
  type: :runtime
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
332
  - - '='
333
333
  - !ruby/object:Gem::Version
334
- version: 0.0.55.pre
334
+ version: 0.0.56.pre
335
335
  description: Cmor::Blog::Backend Module.
336
336
  email:
337
337
  - roberto@vasquez-angel.de