Class: TodoLists::List
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- TodoLists::List
- Defined in:
- lib/todo_lists/models/list.rb
Class Method Summary collapse
Class Method Details
.find_by_index(index) ⇒ Object
5 6 7 |
# File 'lib/todo_lists/models/list.rb', line 5 def self.find_by_index(index) all[index.to_i-1] end |