Method: Satis::Card::Component#title
- Defined in:
- app/components/satis/card/component.rb
#title ⇒ Object
def key
return unless @persist
@key ||= identifier.to_s.parameterize.underscore if identifier.present?
@key ||= (@title)&.parameterize&.underscore
[controller_name, action_name, params[:id], @key, 'tab'].compact.join('_')
end
57 58 59 60 61 |
# File 'app/components/satis/card/component.rb', line 57 def title return @title if @title @title ||= ct('.title') end |