Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created May 3, 2015 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pencilcheck/6976bcaae074044f346f to your computer and use it in GitHub Desktop.
Save pencilcheck/6976bcaae074044f346f to your computer and use it in GitHub Desktop.
reactive_accessor :search_results
@computation = -> {
if page._search.present?
puts "searching with #{page._search}"
SearchTasks.job_fulltext_search(page._search).then do |results|
self.search_results = results
end
end
}.watch!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment