module Admin::NodeHelper
def expanded_rows
def expanded_rows unless @expanded_rows @expanded_rows = case when rows = cookies[:expanded_rows] rows.split(',').map { |x| Integer(x) rescue nil }.compact else [] end if homepage and !@expanded_rows.include?(homepage.id) @expanded_rows << homepage.id end end @expanded_rows end