Skip to content

Commit 9e87fdd

Browse files
committed
Let List quack like a model
1 parent fc867f6 commit 9e87fdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/models/list.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
class List
2+
include ActiveModel::Model
3+
24
def initialize(name, id)
35
@name = name
46
@id = id
57
end
8+
69
attr_reader :name, :id
710

811
# Ordered by the established dates. ruby-list was started in 1995.

0 commit comments

Comments
 (0)