dm_newsletter 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: 9a3b03f31653026403d126ca9b3abf692aac4819
4
- data.tar.gz: 90255c7249b1d731919e056aaab344ae76f62442
3
+ metadata.gz: 38de73b9374b10997257cea41ef7e896180acca9
4
+ data.tar.gz: 28e6da429185e19498aa92c685bfe75a25150efa
5
5
  SHA512:
6
- metadata.gz: c260c52c8739df5137ebb2f7cb7484326d699a101a307a207270162658db99b4ec1042a6146858b715e17fb69b99146f1ac3ff7f69c74e3a408e64c48905aa00
7
- data.tar.gz: bf3be1368f65dbc081072d03345b36975f6c0e659dbbbc4a9061af33e57c9549025e1e038b4acde530def16438d9ea2b70d92c7d1e1de8037625064a883ca62f
6
+ metadata.gz: dd745080832e6e15718f78a3743ba2e04d08012649c81f6cd58fcb00360fdc081497a4c4cdaf9d0b5f4bc9a30f9f2f86095d3fa4b00fc5b5708ccf7f5422b55c
7
+ data.tar.gz: 655f1f6ea2996f229c59d6013538611a78ce9e96819af29061fb4a42344ced4885c5ae693885d2bcaf25939632d9d530e526d26648a2c4c44b08b7b8620ac679
@@ -19,6 +19,9 @@ module DmNewsletter
19
19
  can :access_admin, :all
20
20
  end
21
21
  end
22
+
23
+ ::Ability.register_abilities(:dm_newsletter_abilities)
24
+
22
25
  end
23
26
  end
24
27
  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, DmNewsletter::Concerns::Ability)
@@ -4,5 +4,9 @@ require 'gibbon'
4
4
  module DmNewsletter
5
5
  class Engine < ::Rails::Engine
6
6
  isolate_namespace DmNewsletter
7
+
8
+ config.to_prepare do
9
+ require_dependency 'dm_newsletter/model_decorators'
10
+ end
7
11
  end
8
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm_newsletter
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: gibbon
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -55,6 +55,7 @@ files:
55
55
  - app/controllers/dm_newsletter/newsletters_controller.rb
56
56
  - app/helpers/dm_newsletter/newsletters_helper.rb
57
57
  - app/models/dm_newsletter/concerns/ability.rb
58
+ - app/models/dm_newsletter/model_decorators.rb
58
59
  - app/models/dm_newsletter/permitted_params.rb
59
60
  - app/models/mailchimp_newsletter.rb
60
61
  - app/models/mailchimp_newsletter_subscriber.rb
@@ -193,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
194
  version: '0'
194
195
  requirements: []
195
196
  rubyforge_project:
196
- rubygems_version: 2.5.1
197
+ rubygems_version: 2.4.5
197
198
  signing_key:
198
199
  specification_version: 4
199
200
  summary: Part of MokshaCms, Newsletter Engine