This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.eager_load! | |
models = ActiveRecord::Base.descendants.map(&:name) | |
callbacks = [] | |
callback_types = %w{ _save_callbacks _create_callbacks _destroy_callbacks _validation_callbacks _commit_callbacks } | |
callback_types.each do |callback_type| | |
models.each do |model| | |
callbacks << instance_eval(model).send(callback_type) | |
end;nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) lua_globals L | |
(gdb) lua_gettype $rv | |
(gdb) lua_gettable $rv "string" | |
Walking node part... | |
Value at node idx 1 Key [STRING]: string -> value type 5 @ (TValue *)0x81012cc | |
(gdb) lua_gettype $rv | |
(gdb) lua_walktable $rv | |
Walking array part... | |
Walking node part... | |
Value at node idx 0 Key [STRING]: sub -> value type 6 @ (TValue*)0x8100160 |