lib/public_activity/renderable.rb
# Virtual attribute returning text description of the activity
# using the activity's key to translate using i18n.
Virtual attribute returning text description of the activity
using the activity's key to translate using i18n.
Virtual attribute returning text description of the activity using the activity ' s key to translate using i18n .
def text(params = {})
      k = key.split('.')
      k.unshift('activity') if k.first != 'activity'
      k = k.join('.')
      I18n.t(k, parameters.merge(params) || {})
    end
def text ( params = { } ) k = key . split ( '.' ) k . unshift ( 'activity' ) if k . first != 'activity' k = k . join ( '.' ) I18n . t ( k , parameters . merge ( params ) || { } ) end
Virtual attribute returning text description of the activity
using the activity's key to translate using i18n.
Virtual attribute returning text description of the activity using the activity ' s key to translate using i18n .
# TODO: some helper for key transformation for two supported formats
params
<not_specific>