Displaying 5 results from an estimated 5 matches for "add_to_history".
2009 Mar 29
2
after_create and after_save
Hi,
AFAIK after_create is called after_save if the entry does not exist in
the DB.
Is there a way to tell if a specific model is new or not in
after_save?
I have to do something like:
def after_save
add_to_history ''save''
end
def after_create
add_to_history ''create''
end
However after_save is called when creating too.
--
cheers,
M.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby o...
2002 Jul 10
0
history patch (was Re: portable snprintf implementation)
...(line))?
strlen(line): (readline_len-2));
*** src/modules/gnome/gtkconsole.c.orig Wed Mar 20 18:24:41 2002
--- src/modules/gnome/gtkconsole.c Wed Jul 10 16:21:30 2002
***************
*** 299,312 ****
/* add command to history */
term_ptr = strchr (text_chars, '\n');
if ((add_to_history == TRUE) && (term_ptr != NULL) && (*text_chars !=
'\n'))
! {
! history_buf = g_malloc (term_ptr - text_chars + 1);
! *term_ptr = '\0';
! strncpy (history_buf, text_chars, term_ptr - text_chars + 1);
! GTK_CONSOLE (object)->history =
!...
2008 Jan 16
3
settings headers in mechanize
hi,
a potential mechanize user here. i''ve looked at the API but it''s not
clear what capacity there is to arbitrarily set the headers - does
mechanize allow for this?
mechanize is clearly great for web browsing, but i also need to
construct get and post requests from scratch. i''ve looked at
net:http, libcurl, openuri, but mechanize seems simpler and more
functional than
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
...0xc3d558 "my_test.length()", result=...)
at /home/athirumurthi/git/lldb/tools/lldb/source/Interpreter/CommandObject.cpp:999
#65 0x00007ffff43d1c9b in lldb_private::CommandInterpreter::HandleCommand (this=0x626ca0, command_line=0x7fffe8000ea8 "expr my_test.length()",
lazy_add_to_history=lldb_private::eLazyBoolYes, result=..., override_context=0x0, repeat_on_empty_command=true, no_context_switching=false)
at /home/athirumurthi/git/lldb/tools/lldb/source/Interpreter/CommandInterpreter.cpp:1747
#66 0x00007ffff40f1a85 in lldb::SBCommandInterpreter::HandleCommand (this=0x7fffffffb5...
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
...0xc3d558 "my_test.length()", result=...)
at /home/athirumurthi/git/lldb/tools/lldb/source/Interpreter/CommandObject.cpp:999
#65 0x00007ffff43d1c9b in lldb_private::CommandInterpreter::HandleCommand (this=0x626ca0, command_line=0x7fffe8000ea8 "expr my_test.length()",
lazy_add_to_history=lldb_private::eLazyBoolYes, result=..., override_context=0x0, repeat_on_empty_command=true, no_context_switching=false)
at /home/athirumurthi/git/lldb/tools/lldb/source/Interpreter/CommandInterpreter.cpp:1747
#66 0x00007ffff40f1a85 in lldb::SBCommandInterpreter::HandleCommand (this=0x7fffffffb5...