Created
August 8, 2012 05:00
-
-
Save jefflab/3292220 to your computer and use it in GitHub Desktop.
Helper method to pull from database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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