similar to: Why does Rails convert scopes to downcase

Displaying 20 results from an estimated 70 matches similar to: "Why does Rails convert scopes to downcase"

2009 Aug 28
0
string downcase or how to use downcase an hostname in puppet?
Hi there. I am trying to fix hostnames in our Redhat distributions. Some of our server has some hostname un uppercase, and I need to change them into lowercase because people that use the server rather like lowercase hostnames... I did some basic work : Template : $ cat /var/puppet/templates/rh-network.erb # WARNING this file is autogenered by puppet. Any change there will # be
2006 Aug 12
0
BUG in actionpack , error evaluating nil.downcase ?
hi all, I try to deploy on my host (site5) on I have this error with dispatch.fcgi start ! ( RAILS_GEM_VERSION = ''1.1.6'' ) You have a nil object when you didn''t expect it! The error occured while evaluating nil.downcase /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:18:in `method'' any idea ? arnaud
2006 Mar 13
0
Getting AR to downcase table and column names
I''m looking for the cleanest way to force the Rails framework to use a lower-case version of the table and column names in a database when creating records. I need this for a Rails application that displays the status of an existing backup system. The backup system (Bacula; Nice backup system, BTW) can use either Postgres or Mysql as its database engine. Unfortunately, the table and
2007 Dec 23
7
Help with error "undefined method `downcase' for nil:NilClass" after migration
Hi all, I have a rails 1.5.2 application. I''ve frozen the application via the "rake rails:freeze:gems" command. This application worked well on a server I previously had it installed on. My server was getting really slow, and I requested that I be moved to a new server. When I perform a "gem list rails" command on my new host, I receive only version 1.2.6. Since
2005 Nov 30
3
Downcasing Legacy Table Column Names
I''m looking for the simplest way to *automatically* downcase the attribute names of Models mapped to legacy tables that use upper case. eg: class Workorder < ActiveRecord::Base set_table_name "WORKORDER" end which has "NAME" as an attribute can use "name" as an attribute. currently: workorder = Workorder.find(1) workorder.NAME # =>
2007 Jan 07
6
0.22.0 Errata: Facts are not downcased
I forgot to mention this in my announcement yesterday. Puppet facts are no longer downcased in the language, and string comparisons now default to being case-insensitive. Where your operating system might previously have been ''solaris'' or ''debian'', it is now ''Solaris'' or ''Debian''. However, you can still do comparisons
2006 May 11
1
acts_as_paranoid and nested scopes in Rails 1.1
I have a real problem with the acts_as_paranoid plugin. The find-scope nesting does not seem to work at all. The description: I made a copy of ''acts_as_paranoid'' in the plugin directory, renamed it to ''acts_as_very_new''(just nonsense plugin for testing), and just simplified the code: #-------------------------------------------------------------- module
2006 May 11
0
acts_as_paranoid, aliasing and nested scopes in Rails 1.1
I have a real problem with the acts_as_paranoid plugin. The aliasing of find and so the nested scope does not seem to work at all, when combining it with similar plugins. The description: I made a copy of ''acts_as_paranoid'' in the plugin directory, renamed it to ''acts_as_very_new''(just a nonsense plugin for testing), and simplified the code (original code
2011 Oct 12
1
scopes related question
Hello, Have a question related scope definition. I need to define a scope based on related model attribute values like this. class Product < ActiveRecord::Base belongs_to :currency scope :with_currency, lambda { |currency| unless currency.to_s.upcase == ''ALL'' # here I need to define a scope that would test for currency.char_code to match a passed value # something
2010 Dec 14
0
[LLVMdev] aliases in different scopes
Hi LLVM-Developers, I am looking for an analysis which figures out, if via function argument dereferencing a given value can be modified within that function. Or stated differently: Is in a called function an alias to a given value being modified? The current Basic Alias Analysis seems not to support values in different scopes, so I can't use it for this purpose. Is it supported by a
2013 Jul 12
0
[LLVMdev] How to recognize the declaring code scopes of stack variables
On Thu, Jul 11, 2013 at 8:19 PM, Eric Lu <eirc.lew at gmail.com> wrote: > When parallelize the loop with OpenMP like models, I need to know what > variables will be shared among different threads. I imagined you'd want to recognize loops, not scopes. Sounds like a backend kind of optimization type thing, just detecting values that don't escape the loop. (this would catch cases
2013 Jul 12
0
[LLVMdev] How to recognize the declaring code scopes of stack variables
On Thu, Jul 11, 2013 at 9:33 PM, Eric Lu <eirc.lew at gmail.com> wrote: > Hi, David > yes, it is similar to your description. And do you know any methods to do > this in LLVM IR? I don't know the mid-level optimizers especially well - I doubt there's a thing that does exactly what you need - but a combination of existing passes/analyses might be able to tell you what you
2000 Oct 20
1
Local Scopes in S
I 've been working with R since last year and I am quite "happy" with R capabilities. Nevertheless, I need to present my job to other people (S-users) and I am facing a problem with R & S compatibility: my R-scripts make intensive use of functions local scope, and as far as I know(I am a new to S) S does not have this capability. I use to do things like: create.f <-
2006 Nov 21
2
Accessing scopes
If with_scope has been called previously, how do I access the find conditions dynamically? I am asking because I am using a find_by_sql call (which clobbers the with_scope). How can I access the method scoping so that I can read it and incorporate it into my query manually? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2012 Aug 10
1
Merge scopes with OR
I''d be quite interested in a feature merging scopes with OR - currently the default way is AND. The feature seems to have been requested/reported here: https://github.com/rails/rails/issues/5545 A pull request was sent, but it needs some work. I wrote a quick attempt too here: https://gist.github.com/3312792 It uses the syntax: Jobship.includes(:job).or(Jobship.accepted,
2011 Aug 01
0
prep for 2.8: scopes and variables: nodes are not classes
prep for 2.8: scopes and variables: nodes are not classes I have been preparing for 2.8 by experimenting with 2.7.X and seeing what it takes to get rid of the warnings. I would like to share my results in a number of upcoming posts. Begin with the simple question of hard-wiring scopes. the ''shocking'' revelation is that variables defined in nodes are no longer visible
2013 Jul 12
3
[LLVMdev] How to recognize the declaring code scopes of stack variables
Hi, If I want to know where the stack variables are declared? For example, whether it is declared within a loop or not? Like variables a[100] and temp. int a[100]; for( int i = 0; i < N; i++){ int temp; } Can this be done in LLVM IR? Or should be implemented in Clang. Thanks! Eric -------------- next part -------------- An HTML attachment was scrubbed... URL:
2014 Nov 17
2
[LLVMdev] memory scopes in atomic instructions
Copying #5 here for reference: > 5. Possibly add the following constraint on memory scopes: "The scope > represented by a larger value is nested inside (is a proper subset > of) the scope represented by a smaller value." This would also imply > that the value used for single-thread scope must be the largest > value used by the target. > This constraint
2015 Jan 14
3
[LLVMdev] [RFC][PATCH][OPENCL] synchronization scopes redux
On Tue, Jan 13, 2015 at 10:27 PM, Sameer Sahasrabuddhe < sameer.sahasrabuddhe at amd.com> wrote: > Ping! We need to close on whether everyone is convinced that symbolic > memory scopes have a significant advantage over opaque numbers. Either of > them will be examined by optimizations using a target-implemented API. I > personally don't think that readability in the LLVM
2014 Nov 19
2
[LLVMdev] memory scopes in atomic instructions
> On Nov 18, 2014, at 2:35 PM, Chandler Carruth <chandlerc at google.com> wrote: > > > On Fri, Nov 14, 2014 at 1:09 PM, Sahasrabuddhe, Sameer <sameer.sahasrabuddhe at amd.com <mailto:sameer.sahasrabuddhe at amd.com>> wrote: > 1. Update the synchronization scope field in atomic instructions from a > single bit to a wider field, say 32-bit unsigned integer.