Module: Card::Set::Right::Account::Views::Format

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb

Instance Method Summary collapse

Instance Method Details

#view: closureObject



29
# File 'platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb', line 29

view :closure, perms: :delete, template: :haml, wrap: :slot

#view: reset_password_daysObject



27
# File 'platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb', line 27

view :reset_password_days, :token_days

#view: reset_password_urlObject



13
14
15
# File 'platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb', line 13

view :reset_password_url, denial: :blank, perms: :reset_password_ok? do
  token_url :reset_password
end

#view: token_daysObject



21
22
23
# File 'platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb', line 21

view :token_days, denial: :blank do
  Card.config.token_expiry / 1.day
end

#view: token_expiryObject



17
18
19
# File 'platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb', line 17

view :token_expiry, denial: :blank do
  "(#{token_expiry_sentence}"
end

#view: verify_daysObject

DEPRECATED



26
# File 'platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb', line 26

view :verify_days, :token_days

#view: verify_urlObject



9
10
11
# File 'platypus/tmp/set/gem-defaults/mod014-account/right/account/views.rb', line 9

view :verify_url, cache: :never, denial: :blank, perms: :verify_url_ok? do
  token_url :verify_and_activate, anonymous: true
end