Class: PasswordComponent

Inherits:
BaseComponent show all
Defined in:
app/components/password_component.rb

Instance Attribute Summary

Attributes inherited from Puffer::Component::Base

#field, #identifer, #opts, #parent_controller, #record, #records, #resource

Instance Method Summary collapse

Methods inherited from BaseComponent

#filter, #form

Methods inherited from Puffer::Component::Base

#component_id, #event_options, #event_path, #event_url, #fallback_action, #initialize, #javascript_wrap, #method_for_action, #process, #render, #replace

Methods included from Puffer::Component::Base::ClassMethods

#controller_path

Constructor Details

This class inherits a constructor from Puffer::Component::Base

Instance Method Details

#indexObject



3
4
5
# File 'app/components/password_component.rb', line 3

def index
  '*' * @record.call_chain(field.to_s).mb_chars.length
end