Module: HasTrolley::InstanceMethods
- Defined in:
- lib/has_trolley.rb
Instance Method Summary collapse
-
#trolley_user_display_name ⇒ Object
implement in your application if you have another method name besides these common ones WARNING: potential security issue, definitely override if any of these options are sensitive.
Instance Method Details
#trolley_user_display_name ⇒ Object
implement in your application if you have another method name besides these common ones WARNING: potential security issue, definitely override if any of these options are sensitive
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/has_trolley.rb', line 24 def trolley_user_display_name if respond_to?(:display_name) display_name elsif respond_to?(:name) name elsif respond_to?(:username) username elsif respond_to?(:nickname) nickname end end |