padma-assets 0.2.9 → 0.2.10

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: 856bdd472b827470988adcaee5e9ff2418d97ee2
4
- data.tar.gz: 723a3d940d839bf9ecfd50abfa4a4e2e59454337
3
+ metadata.gz: 8f3fdd69d9150a05f5aac904cd38e322b511b176
4
+ data.tar.gz: 281f0c86bb10c0780170d3ef906766dcfd22f59a
5
5
  SHA512:
6
- metadata.gz: 40eb5004bded6ed069cb9c0db4e2a174db41e9d8c3a8693f377b3240a594b11906fe01ffa395109ffebad90ac1b59b93d487c43dce196a7c7d92abf2fd1459b7
7
- data.tar.gz: 3ead87d490809153a6be575295583618681f064e4c6814a36625f6bd05b2ac450530bf30e23076eeb5618d4dd4bd6b34ed3fbf0c95f5959cd489c0c2e8ab609b
6
+ metadata.gz: b692dae3524f25bc985c8e9f4d4439f73ad26978afb23586638e35724d7c34b36b689376acd93636ce2b2c8575fc6c3dac67def99d0b2b61c19c23fb2eb6f872
7
+ data.tar.gz: c9e3506dc89888407387cb91bb4038505c418a8c59acaecc4c83532dbbfed2a3239e50f466c3823c5148314d54353cc8099954bb1274823a86e7f28523d2e11f
@@ -31,10 +31,10 @@ class GeneralAbility
31
31
  end
32
32
 
33
33
  def padma_account(user)
34
- if user.current_account.is_a?(PadmaAccount)
35
- user.current_account
36
- else
34
+ if user.current_account.respond_to?(:padma)
37
35
  user.current_account.padma
36
+ else
37
+ user.current_account
38
38
  end
39
39
  end
40
40
 
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.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-05 00:00:00.000000000 Z
11
+ date: 2016-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties