module IndexFor::ShareHelper

Private Instance Methods

append_class(html_options, *classes) click to toggle source
# File lib/index_for/share_helper.rb, line 5
def append_class html_options, *classes
  classes << html_options[:class]
  classes.compact!
  html_options[:class] = classes.join(" ") if classes.any?
end
append_html_class(options, *classes) click to toggle source
# File lib/index_for/share_helper.rb, line 11
def append_html_class options, *classes
  options[:html] ||= {}
  append_class options[:html], *classes
end
translate(i18n_key, options = {}) click to toggle source
# File lib/index_for/share_helper.rb, line 16
def translate i18n_key, options = {}
  I18n.t(i18n_key, options.reverse_merge(scope: :index_for))
end