Sha256: e2470651d8d90b0eff27a08da42b55be84475ac055daa7f3645574504cdb2805

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

require 'peoplefinder'

module Peoplefinder::PeopleHelper
  def day_name(symbol)
    I18n.t(symbol, scope: [:peoplefinder, :people, :day_names])
  end

  def day_symbol(symbol)
    I18n.t(symbol, scope: [:peoplefinder, :people, :day_symbols])
  end

  def profile_image_tag(person, source, options = {})
    image_tag(source, options.merge(alt: "Current photo of #{ person }"))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peoplefinder-0.1.1 app/helpers/peoplefinder/people_helper.rb
peoplefinder-0.1.0 app/helpers/peoplefinder/people_helper.rb