dm_cms 4.2.1.5 → 4.2.2

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: 9892f8ad417c5b68f0d601e802996ceb07c6168a
4
- data.tar.gz: 7c887c1ce18405fd978f21020877f85fcd18ba03
3
+ metadata.gz: ba2403f8af3e70644dcb29f8a9590bb9426f6eb9
4
+ data.tar.gz: 6bcfde0761c44936b0a2264525e3b6cd940a76c8
5
5
  SHA512:
6
- metadata.gz: 3e75b9d547e803ee117ece5c52fc5c3bbb41c763d474883bf8fd89f5b9af5206c9a1f7a3dbbacdda494bed3357b723efb7ddd75c7cb0198aec5e277a12819277
7
- data.tar.gz: f4d2397cbff0e0c1ab19859a59daf824c96b4870bf721335976c0fd2b6bec952b24f245973ff02b29a963859f90206986a21f05ec182e2068dd02ba8017eea82
6
+ metadata.gz: 42611a32a1ec269b00eac75c8e57ac6ae707f02977873c7dee9e3e624d8d54ae050717daa59268b09ef334fa7cd1eb5ffb98a667d767b0c8a0d20a0638b615af
7
+ data.tar.gz: 87b17a338f5b87c44b5ea389425f5e5bff0d4bb6133e4d0d6e3d3e2f85d675f4f5571a31b4a9e0e77358ae3e45f9ecd516b11ec87d6ba45eeaeda05282abbcb5
@@ -17,6 +17,7 @@ module DmCms
17
17
  #--- Admin
18
18
  if user.has_role?(:content_manager)
19
19
  can :manage_content, :all
20
+ can :access_media_library, :all
20
21
  can :access_admin, :all
21
22
  end
22
23
 
@@ -36,6 +37,9 @@ module DmCms
36
37
  can(:read, CmsPage) { |page| page.is_published? }
37
38
  end
38
39
  end
40
+
41
+ ::Ability.register_abilities(:dm_cms_abilities)
42
+
39
43
  end
40
44
  end
41
45
  end
@@ -0,0 +1,6 @@
1
+ # Decorate any models
2
+ # Chose to use this method for now, instead of creating a decorator folder and
3
+ # eager-loading it. Prefer to keep the logic in the model folder.
4
+ #------------------------------------------------------------------------------
5
+
6
+ Ability.send(:include, DmCms::Concerns::Ability)
data/lib/dm_cms/engine.rb CHANGED
@@ -5,6 +5,10 @@ require 'dm_core'
5
5
  module DmCms
6
6
  class Engine < ::Rails::Engine
7
7
  isolate_namespace DmCms
8
+
9
+ config.to_prepare do
10
+ require_dependency 'dm_cms/model_decorators'
11
+ end
8
12
 
9
13
  initializer "dm_cms.init_liquid_tags" do |app|
10
14
  #--- require each tag -- registration is done in the tag file itself
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1.5
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dm_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.1.5
19
+ version: 4.2.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.1.5
26
+ version: 4.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: meta-tags-helpers
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,6 +98,7 @@ files:
98
98
  - app/models/cms_snippet.rb
99
99
  - app/models/contact_form.rb
100
100
  - app/models/dm_cms/concerns/ability.rb
101
+ - app/models/dm_cms/model_decorators.rb
101
102
  - app/models/dm_cms/permitted_params.rb
102
103
  - app/models/media_file.rb
103
104
  - app/presenters/cms_blog_presenter.rb
@@ -375,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
376
  version: '0'
376
377
  requirements: []
377
378
  rubyforge_project:
378
- rubygems_version: 2.5.1
379
+ rubygems_version: 2.4.5
379
380
  signing_key:
380
381
  specification_version: 4
381
382
  summary: Part of MokshaCms, Content Management Engine