module FreshdeskRails::Helper

Public Class Methods

current_locale() click to toggle source
# File lib/freshdesk-rails/helper.rb, line 7
def self.current_locale
  return I18n.locale if defined?(::I18n)
end
indifferent_access(hash, key) click to toggle source
# File lib/freshdesk-rails/helper.rb, line 3
def self.indifferent_access(hash, key)
  hash[key.to_s] || hash[key.to_sym]
end