File tree Expand file tree Collapse file tree
ruby/ql/test/library-tests/concepts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414| app/controllers/users_controller.rb:20:7:20:57 | call to update_attributes | app/controllers/users_controller.rb:20:49:20:55 | call to get_uid |
1515| app/controllers/users_controller.rb:23:7:23:42 | call to update_attribute | app/controllers/users_controller.rb:23:37:23:41 | "U13" |
1616| app/controllers/users_controller.rb:26:7:26:15 | ... = ... | app/controllers/users_controller.rb:26:19:26:23 | "U14" |
17+ | app/models/user.rb:4:5:4:28 | call to update | app/models/user.rb:4:23:4:27 | "U15" |
18+ | app/models/user.rb:5:5:5:23 | call to update | app/models/user.rb:5:18:5:22 | "U16" |
19+ | app/models/user.rb:6:5:6:56 | call to update_attributes | app/models/user.rb:6:35:6:39 | "U17" |
20+ | app/models/user.rb:6:5:6:56 | call to update_attributes | app/models/user.rb:6:51:6:54 | true |
21+ | app/models/user.rb:9:5:9:40 | call to update_attribute | app/models/user.rb:9:35:9:39 | "U18" |
22+ | app/models/user.rb:12:5:12:13 | ... = ... | app/models/user.rb:12:17:12:21 | "U19" |
Original file line number Diff line number Diff line change 11class User < ActiveRecord ::Base
2+ def t1
3+ # UpdateLikeInstanceMethodCall
4+ self . update ( name : "U15" )
5+ update ( name : "U16" )
6+ self . update_attributes ( { name : "U17" , isAdmin : true } )
7+
8+ # UpdateAttributeCall
9+ self . update_attribute ( "name" , "U18" )
10+
11+ # AssignAttributeCall
12+ self . name = "U19"
13+ user . save
14+ end
215end
You can’t perform that action at this time.
0 commit comments