lib/column.rb in trollolo-0.0.14 vs lib/column.rb in trollolo-0.1.0
- old
+ new
@@ -15,10 +15,10 @@
# To contact SUSE about this file by physical or electronic mail,
# you may find current contact information at www.suse.com
class Column
def initialize(board_data, list_id)
@board_data = board_data
- @list_data = @board_data["lists"].select{|l| l["id"] == list_id}.first
+ @list_data = @board_data["lists"].find{|l| l["id"] == list_id}
end
def name
@list_data["name"]
end