Skip to content

Instantly share code, notes, and snippets.

@jefflab
Created August 8, 2012 05:00
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 jefflab/3292220 to your computer and use it in GitHub Desktop.
Save jefflab/3292220 to your computer and use it in GitHub Desktop.
Helper method to pull from database
module DisplayHelper
def pull_from_Datum(value)
points_array = []
Datum.find_each do |point|
time_point = point.created_at
value_point = point.value
points_array << [time_point, value_point]
end
return points_array
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment