app/helpers/association_helper.rb
# options(:show_items) is array of items to show in assoc target view
show_items) is array of items to show in assoc target view
show_items ) is array of items to show in assoc target view
def show_item?(options, item)
    options.nil? and return false
    show_items = options.to_h[:show_items].to_a.map(&:to_sym)
    show_items.include?(item.to_sym)
  end
def show_item? ( options , item ) options . nil? and return false show_items = options . to_h [ :show_items ] . to_a . map ( & :to_sym ) show_items . include? ( item . to_sym ) end
options(:show_items) is array of items to show in assoc target view
options ( : show_items ) is array of items to show in assoc target view
options
<not_specific>
item
<not_specific>