script/find_and_replace.rb
# create an array of interactive info
create an array of interactive info
create an array of interactive info
def interactive_info(i)
  info = [];
  (2013..2019).each{|year|
    info << i.interactive_page.lightweight_activity.runs.where(updated_at: Date.new(year)..Date.new(year+1)).count
  }
  info << i.interactive_page.lightweight_activity.runs.where(updated_at: Date.new(2020)..Date.today).count
  info << i.interactive_page.lightweight_activity.runs.count
  info << i.id
  info << i.interactive_page.lightweight_activity.id
  info << i.url
  info
end
def interactive_info ( i ) info = [ ] ; ( 2013 .. 2019 ) . each { | year | info << i . interactive_page . lightweight_activity . runs . where ( updated_at : Date . new ( year ) .. Date . new ( year + 1 ) ) . count } info << i . interactive_page . lightweight_activity . runs . where ( updated_at : Date . new ( 2020 ) .. Date . today ) . count info << i . interactive_page . lightweight_activity . runs . count info << i . id info << i . interactive_page . lightweight_activity . id info << i . url info end
create an array of interactive info
create an array of interactive info
i
<not_specific>