# File test/template/prototype_helper_test.rb, line 31 def name @id.nil? ? 'new article' : "article ##{@id}" end
# File test/template/prototype_helper_test.rb, line 30 def new_record?; @id.nil? end
# File test/template/prototype_helper_test.rb, line 29 def save; @id = 1; @author_id = 1 end
# File test/template/prototype_helper_test.rb, line 28 def to_key() id ? [id] : nil end