similar to: Trouble redefining ActiveRecord default error messages

Displaying 20 results from an estimated 20000 matches similar to: "Trouble redefining ActiveRecord default error messages"

2006 Mar 04
2
Declaring ActiveRecord observers
Hello I''m using the ''act_as_authenticated'' plugin to implement a small and simple authentication system in my app. Everything is working just fine and the world is a better place to live in. The plugin creates a ActiveRecord observer in order to send the newly registered user a confirmation e-mail. Per the API docs [1], one should declare the observer in the
2006 Nov 09
2
redefining the method belongs_to in ActiveRecord::Base
Hi. I''ve tried to redefine the method belongs_to in ActiveRecord::Base, so every time a model is defined as belonging to :attachment, it should have some additional methods. I tried to do an alias of belongs_to, but this was not successful. The error message in Webrick was > Booting WEBrick... ./script/../config/../lib/ActiveRecordExtensions.rb:67: undefined method
2006 Mar 29
4
Dreamhosters beware: 1.1 migration ruckus
This will probably demolish your Typo-based weblog and cause some other glitches. Read the comments and some workarounds here: http://blog.dreamhost.com/2006/03/28/new-rails/ -- ---------------------------------------------------- http://sobrerailes.com
2017 Jan 14
2
Redefining optnone to help LTO
Can you clarify what would be the semantic of this new attribute compared to optnone? Thanks, — Mehdi > On Jan 13, 2017, at 9:43 PM, Philip Reames via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I would prefer we introduce a new attribute for this purpose. I regularly use optnone for debugging/reduction purposes or when trying to understand the interaction of our pass
2005 Oct 12
1
[ win32utils-Support Requests-2614 ] warning: redefining constant Struct::Win32ServiceStatus
Support Requests item #2614, was opened at 2005-10-12 10:23 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=2614&group_id=85 Category: win32-service Group: None Status: Open Resolution: None Priority: 3 Submitted By: Scott Harper (sharperct) Assigned to: Nobody (None) Summary: warning: redefining constant Struct::Win32ServiceStatus Initial
2006 Jan 30
2
problem redefining module method
I''m having a problem redefining a method in one of my modules. Lets say I have this module in /lib: module Hello def say_hello "hello" end end And one of my ActiveRecord models mixes it in like: class Item < ActiveRecord::Base include Hello end This works fine, I can call @item.say_hello just fine. But when I try to redefine the method: class Item <
2006 Mar 08
12
favorite FTP client of railers
Hi, Which FTP client would fit in nicely with OS X and Textmate. Thanks, Peter
2014 Feb 08
1
Redefining .Call
Hi All, is there a caveat in redefining .Call in a package? (Apart from the performance hit of the extra function call.) I want to execute a check every time I call back to C, and this seems to be the easiest solution, instead of modifying all functions of the package. It also seems to be a good way to supply the PACKAGE argument, btw. I guess this is a good solution, but I might have
2009 Aug 29
0
default_error_messages error with attachment_fu
Hi, Just a newbie at Rails. Was looking at uploading images using attachment_fu and RMagick on a Windows Vista machine, but was getting this error. Any possible way of fixing this problem? ActiveRecord::Errors.default_error_messages has been deprecated. Please use I18n.translate(''activerecord.errors.messages'') I guess it''s attributed to this line in attachment_fu.rb
2017 Jan 11
9
Redefining optnone to help LTO
In D28404, Mehdi wanted to use the 'optnone' attribute as a way to record "I was compiled with -O0" in the IR, because it seems like a good idea to remember that fact in an LTO compilation and there is no way to remember that fact currently. A couple of people felt it might be better to have this idea discussed on the dev list, where it might get better exposure, so I'm
2017 Jan 16
2
Redefining optnone to help LTO
> On Jan 16, 2017, at 10:00 AM, Sean Silva via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > What is the end goal? If the goal is roughly "if a user passes -O0 when compiling a TU in LTO mode, their final binary should have functions that look like the result of -O0 noLTO compilation", then the frontend can just emit a normal -O0 object file I think. What is the
2015 Jun 09
4
[LLVMdev] .thumb_set
Hi all Saleem, in 2014 you added the .thumb_set test case. I’ve found a difference in behaviour of .thumb_set compared to .set. I was hoping to resolve this difference as it will allow me to reapply r239440. The issue i’m seeing is that we define an alpha function, then beta function, then assign alpha to beta. But given that beta has already been defined, this would mean we are redefining it
2001 Jan 23
0
Build Problem
I have been trying to get the cvs version of open ssh to compile on a linux based machine and keep running into this problem. Does anybody have any suggestions gcc -g -O2 -Wall -O3 -mcpu=pentiumpro -I/usr/local/ssl/include -I. -I. -DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\"
2015 Jun 12
2
[LLVMdev] .thumb_set
For what it is worth it, gas has this strange behaviour. I agree it is strange, but why is it an issue for r239440? Will I get a failure if I revert it? Cheers, Rafael On 12 June 2015 at 12:17, Pete Cooper <peter_cooper at apple.com> wrote: > Hey Salem, > > Any chance you’ve had time to take a look at this? > > If you prefer, I can prepare a patch with the change i’d like
1999 May 14
0
Problems Building Samba 2.0.3 --with-afs
Hi all, I'm going nuts. Ken Weiss and Steve Holstead have been very nice to me and supplied me with info on how to set my configure files and such. It helped me a lot but I still get stuck a bit later in the process. Namely during pass_check.c. I'm on a AIX 4.1.5 box. Using the export version of AFS 3.4. Help is appreciated. I wouldn't ask you all this if I hadn't already spent
2004 Apr 08
0
Error building Samba 3.0.2a
While building Samba 3 for SuSE linux 9.0 I have a problem with the AFS component (it builds fine if I omit the --with-afs and --with-fake-kaserver options). During configure I did get a warning: checking whether to use AFS clear-text auth... yes checking whether to use AFS fake-kaserver... yes checking for /usr/include/afs... yes checking afs.h usability... no checking afs.h presence... no
2015 Apr 17
3
Redefining {
I am curious if anyone knows of R code where the "{" function is redefined in a useful way. Or "(" for that matter. Thanks Mick
1999 Sep 29
0
building on Red Hat 5.2
Hi, I'm trying to build samba 2.0.5a on Red Hat 5.2. It originally came with 1.9something, which seemed to have some bugs accessing large mounted directories. I downloaded Red Hat's updates package, but unfortunately it only comes with smbclient and smbd, and what I need is smbmount and smbumount. My binaries from my more recent systems (RH6 and OL2.2) won't run due to
2005 Nov 01
0
altering a model for multiple tests
I have a model "Collection" which has a constant PATH. When in development or production mode, I want PATH == "data/images". When in test mode, I want PATH == "data/test/images". Here is my partial solution: The Collection class defines PATH so that it points the default (non-test) location. In my test file "collection_test.rb", I overrid that assignment
2005 Sep 17
0
Reloading and redefining methods: infinite recursion
When I redefine a method like this class Klass alias_method :method_without_addition, :method def method_with_addition ... method_without_addition ... end alias_method :method, :method_with_addition end I get into trouble in the development environment. As these definitions are executed again for each request, the second time around method_without_addition is actually the