Sha256: 2926de43671d8cc3c6bab8bd12120c9b29cf52e733bbadf3acdd8077e131e5a8

Contents?: true

Size: 210 Bytes

Versions: 4

Compression:

Stored size: 210 Bytes

Contents

module NotificationsHelper

  # Set locale as per subject preference
  def locale_as(subject)
    if subject.respond_to? :language
      I18n.locale = subject.language || I18n.default_locale
    end
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-0.18.1 base/app/helpers/notifications_helper.rb
social_stream-base-0.13.1 app/helpers/notifications_helper.rb
social_stream-0.18.0 base/app/helpers/notifications_helper.rb
social_stream-base-0.13.0 app/helpers/notifications_helper.rb