Compare commits
2 Commits
3fa1ac101c
...
f3a1def396
Author | SHA1 | Date | |
---|---|---|---|
f3a1def396 | |||
e178f94ff7 |
@ -4,6 +4,10 @@ class Member < ApplicationRecord
|
|||||||
has_many :notifications
|
has_many :notifications
|
||||||
has_paper_trail
|
has_paper_trail
|
||||||
|
|
||||||
|
def self.ransackable_attributes(auth_object = nil)
|
||||||
|
%w[display_name legal_name email identification_number]
|
||||||
|
end
|
||||||
|
|
||||||
def cancelled_on
|
def cancelled_on
|
||||||
expires_on + 90.days
|
expires_on + 90.days
|
||||||
end
|
end
|
||||||
|
@ -20,11 +20,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label><%= t('members.attributes.legal_name') %></label></td>
|
<td><label><%= t('members.attributes.legal_name') %></label></td>
|
||||||
<td><%= form.text_field :legal_name, required: true %></label></td>
|
<td><%= form.text_field :legal_name %></label></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label><%= t('members.attributes.pronouns') %></label></td>
|
<td><label><%= t('members.attributes.pronouns') %></label></td>
|
||||||
<td><%= form.text_field :pronouns, required: true %></label></td>
|
<td><%= form.text_field :pronouns %></label></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><label><%= t('members.attributes.email') %></label></td>
|
<td><label><%= t('members.attributes.email') %></label></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user