usman 0.3.34 → 0.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 188ee6ca9f27bceb8aa41bd8664d498116af4d26c774e3f2696ddc62e8b13267
4
- data.tar.gz: e753877d730f3a44eed3a8cfa13536929a29c2b694b585391ea730aebfcde262
3
+ metadata.gz: 61da2111e66f65bf542f98c357b05c8a7b9af5ef2c416a0b0a368c388eb842a7
4
+ data.tar.gz: e49affb779e40acf36c6196588163f93c96c59a45babf87f42cead469cc75bf7
5
5
  SHA512:
6
- metadata.gz: 91d4e9a582615d692b2f13eb27de6a6a05c31f975ffb7d13daf4dfa6e2e6fabf22583657b6b789caa3ab5770b8b68ffe2b7402dff6a5162b24574504e10ba9c4
7
- data.tar.gz: a3f993f2d8f67f0fd800d7c5c3e5cf6c7012a1830568a550e8c6e4c7645524898eac59d664c0de765d9daf4d7b62c535df03f947c5d4bed2a8e24d1c18bf0be6
6
+ metadata.gz: 60e66afd785a8431ee95c259168b98bcf6305ac5e82a4df773e42b185d869824e2737787705d6c6f490c323b675c2abc5fcf3db2d18d79854f98b0061c38c201
7
+ data.tar.gz: ca2393e0efc9c8182496372341307239305152cbe2899395cc020396bc14d481b5fe99c182481ba3295aa905c73c719a0b7032e6dcc606c784c5854157c38b77
@@ -111,7 +111,6 @@ class Registration < ApplicationRecord
111
111
  # => "pending"
112
112
  def pending!
113
113
  self.update_attribute(:status, PENDING)
114
- self.user.update_attribute(:status, PENDING) if self.user
115
114
  end
116
115
 
117
116
  # change the status to :verified
@@ -121,7 +120,6 @@ class Registration < ApplicationRecord
121
120
  # => "verified"
122
121
  def verify!
123
122
  self.update_attribute(:status, VERIFIED)
124
- self.user.update_attribute(:status, VERIFIED) if self.user
125
123
  end
126
124
 
127
125
  # change the status to :suspended
@@ -131,7 +129,6 @@ class Registration < ApplicationRecord
131
129
  # => "suspended"
132
130
  def suspend!
133
131
  self.update_attribute(:status, SUSPENDED)
134
- self.user.update_attribute(:status, SUSPENDED) if self.user
135
132
  end
136
133
 
137
134
  # change the status to :deleted
@@ -141,7 +138,6 @@ class Registration < ApplicationRecord
141
138
  # => "deleted"
142
139
  def delete!
143
140
  self.update_attribute(:status, DELETED)
144
- self.user.update_attribute(:status, DELETED) if self.user
145
141
  end
146
142
 
147
143
  # Permission Methods
@@ -8,7 +8,7 @@
8
8
  <th>Device Name</th>
9
9
  <th>Device Type</th>
10
10
  <% if display_delete_links? %>
11
- <th style="text-align: center;" colspan="2">Actions</th>
11
+ <th style="text-align: center;">Actions</th>
12
12
  <% end %>
13
13
  </tr>
14
14
  </thead>
@@ -42,7 +42,7 @@
42
42
 
43
43
  <% if display_delete_links? %>
44
44
  <% delete_link = registration_device_path(@registration, device) %>
45
- <td class="action-links" style="width:10%"> -->
45
+ <td class="action-links" style="width:10%">
46
46
 
47
47
  <%= link_to raw("<i class=\"linecons-trash\"></i> Remove Role"), delete_link, method: :delete, device: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>
48
48
 
@@ -8,7 +8,7 @@
8
8
  <th style="text-align: left;width:15%;">Location</th>
9
9
  <th>Status</th>
10
10
  <% if display_manage_links? %>
11
- <th style="text-align: center;width:15%;">Actions</th>
11
+ <th style="text-align: center;width:15%;" colspan="2">Actions</th>
12
12
  <% end %>
13
13
  </tr>
14
14
  </thead>
data/lib/usman/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Usman
2
- VERSION = '0.3.34'
2
+ VERSION = '0.3.35'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.34
4
+ version: 0.3.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-16 00:00:00.000000000 Z
11
+ date: 2018-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails