b2f60bb9a1
Rails's form helpers use the `$attr_before_type_cast` method where available, and this value only appears to be updated on assignment, not when the object is mutated in some other way: [1] pry(main)> mr = MergeRequest.new => #<MergeRequest:0x007fcf28395d88 ...> [2] pry(main)> mr.description = 'foo' => "foo" [3] pry(main)> mr.description << ' bar' => "foo bar" [4] pry(main)> mr.description => "foo bar" [5] pry(main)> mr.description_before_type_cast => "foo" [6] pry(main)> mr.description += ' bar' => "foo bar bar" [7] pry(main)> mr.description_before_type_cast => "foo bar bar" |
||
---|---|---|
.. | ||
add_todo_when_build_fails_service.rb | ||
base_service.rb | ||
build_service.rb | ||
close_service.rb | ||
create_service.rb | ||
merge_service.rb | ||
merge_when_build_succeeds_service.rb | ||
post_merge_service.rb | ||
refresh_service.rb | ||
reopen_service.rb | ||
update_service.rb |