vrfs737: added first_recording_at

This commit is contained in:
Jonathan Kolyer 2013-12-21 23:23:33 -06:00
parent fa05c3eb5d
commit fcd093f5a6
1 changed files with 4 additions and 0 deletions

View File

@ -1006,6 +1006,10 @@ module JamRuby
end
end
end
def first_recording_at
Recording.where(:owner_id => self.id).order('created_at ASC').first.try(:created_at)
end
# devise compatibility