Method: Activr::Activity#humanize

Defined in:
lib/activr/activity.rb

#humanize(options = { }) ⇒ String

Humanize that activity

Parameters:

  • options (Hash) (defaults to: { })

    Options hash

Options Hash (options):

  • :html (true, false)

    Output HTML (default: ‘false`)

Returns:

  • (String)

    Humanized activity



379
380
381
382
383
# File 'lib/activr/activity.rb', line 379

def humanize(options = { })
  raise "No humanize_tpl defined" if self.humanize_tpl.blank?

  Activr.sentence(self.humanize_tpl, self.humanization_bindings(options))
end