padma-assets 0.1.18 → 0.1.19

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: 38bd30888d704b41a6b87172f67fe9693e972511
4
- data.tar.gz: 89477e0015444e56f257abe9708880ec0c550077
3
+ metadata.gz: 15d3a1ea503d70888a725b8b8c5b24c8d06712c9
4
+ data.tar.gz: 3c713d57c9717a8562bc44d10b518b1855dc2a5f
5
5
  SHA512:
6
- metadata.gz: 5b32fcbc7d92b08a987d60137517921f1dc9f969234292d120024fc9ede39cef7c00d2a9e8ed303f4ae5ac4587cae6dc297e375843f4af30c1f12ae3a22e918a
7
- data.tar.gz: 2cad72110ed9650d161b161a62b290843b669a66e84527b69bb4dc9263c88045e523ae2253aaa4a5581f0d72de9c7b11e4bbf6b67aee93f778e39c67cba62238
6
+ metadata.gz: 8560dace9949e6b31b6668f294c728c6c3bdd609c8274bd011eed8dc22ee3f201c3ca57c52d9be28f2eb7135e59a81e46a21d929b9d7ec2862a6a7a3003be51d
7
+ data.tar.gz: 044e6b7962222dfa50983ebad1524e9fd5ae655f382667eb7719b0ab51a1903e67f82f13b9906a42f44dab464abe6f49425134e92ad60505ac809a0feb8eaccb
@@ -0,0 +1,15 @@
1
+ class GeneralAbility
2
+ include CanCan::Ability
3
+
4
+ def initialize(user)
5
+ if alpha?(user)
6
+ can :manage, :mailchimp
7
+ end
8
+ end
9
+
10
+ private
11
+
12
+ def alpha?(user)
13
+ user.account_tester_level == 'alpha'
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  @registerEvent = (eventName,options) ->
2
2
  mixpanel.track(eventName);
3
- # TODO intercom event
3
+ Intercom('trackEvent',eventName);
@@ -14,3 +14,9 @@
14
14
  <%= link_to t('header-menu.mailing.scheduled_mails_future'),
15
15
  "#{APP_CONFIG['mailing-url']}/scheduled_mails/pending" %>
16
16
  </li>
17
+ <% if can?(:manage, :mailchimp) -%>
18
+ <li>
19
+ <%= link_to t('header-menu.mailing.mailchimp_configuration'),
20
+ "#{APP_CONFIG['mailing-url']}/mailchimp/configuration" %>
21
+ </li>
22
+ <% end -%>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padma-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-19 00:00:00.000000000 Z
11
+ date: 2015-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -31,6 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - app/abilities/general_ability.rb
34
35
  - app/assets/fonts/Gotham-Bold.eot
35
36
  - app/assets/fonts/Gotham-Bold.otf
36
37
  - app/assets/fonts/Gotham-Bold.svg