Module: Hashtags::ViewHelper

Defined in:
app/helpers/hashtags/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_hashtags_help_for(cls, field_name) ⇒ Object



3
4
5
6
# File 'app/helpers/hashtags/view_helper.rb', line 3

def render_hashtags_help_for(cls, field_name)
  return unless help = cls.hashtags[field_name.to_s].help
  render 'hashtags/help', help: help
end