Displaying 20 results from an estimated 7000 matches similar to: "Please, take a look at PR #10848 "Allow to pass a block to `cattr_reader`.""
2010 Mar 14
0
[patch] activesupport/core_ext/class cattr_reader/mattr_reader
Details/patch are in this lighthous ticket:
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4172-inconsistency-with-cattr_readermattr_reader
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
2013 Mar 01
7
Why so many worker threads?
Hello!
Can anyone explain why my Unicorn installation (for RoR site) have so
many worker threads?
* screenshot: http://i.stack.imgur.com/U9TFR.png
* unicorn.rb: https://gist.github.com/907th/4995323
Thanks!
2006 Sep 05
5
cattr_accessor
Hi,
i''ve been playing with ror for a little over two months now, and was
wondering wether someone could explain to me what was
cattr_accessor
and if it is still in use. . . i looked up in api.rubyonrails.com and
coulnd''t find any documentation...
is it a useful/worth learning method? what do u use it for?
--
Posted via http://www.ruby-forum.com/.
2013 Apr 08
1
cattr_accessor and Thread.current prblems
Hello,
I am trying to convert three applications to multitenant, all of them have
same structure difference is only in little functions and template designs.
All of them using cattr_accessor for setting currencies and other data, and
it works perfectly
Now i added app_id as cattr_accessor to App model to use it in
default_scope to implement multi-tenancy
class App < ActiveRecord::Base
2011 Sep 20
0
What's the difference between mattr_accessor and cattr_accessor in ActiveSupport?
Hi,
I was reading source code of mattr_accessor and cattr_accessor in
ActiveSupport and found out that the method definitions are all most
identical. Except cattr_writer accepts a optional block.
I googled and read
http://stackoverflow.com/questions/2203800/difference-between-mattr-accessor-and-cattr-accessor-in-activesupport.
That guy had the same question as me, but no one answered the question
2006 Feb 02
4
rails-1.0.0 gem rdoc problem
Just got a brand new install of ruby-1.8.4 and new gems downloaded,
specifically rails-1.0.0. Seems rails does not generated rdoc for gem_server.
Looking into the problem, it seems that there is an error when doing ''rake rdoc''
for rails-1.0.0.
% rake rdoc
(in /opt/local/ruby-1.8.4/lib/ruby/gems/1.8/gems/rails-1.0.0)
rm -r doc
unrecognized option `--line-numbers --inline-source
2008 Dec 31
1
when to set a class attribute variable during boot
I have an ActiveRecord model with a cattr_accessor. The class
attribute is set up like this:
class MyModel < ActiveRecord::Base
cattr_accessor :my_attribute
end
Because I need to give #my_attribute environment-specific values, I
try to set this attribute in environments/development.rb like so:
MyModel.my_attribute = 3
But this leads to odd and erratic behavior when #my_attribute is
called
2006 Jun 23
0
help... can''t run ActiveRecord unit tests to test bug fix
I found a bug in ActiveRecord. Being a good netizen, I thought I
would write a test to illustrate the bug, fix it, and then submit a
patch to the maintainers.
However, I can''t run the AR tests. I followed the instructions in
RUNNING_UNIT_TESTS but it generates an error immediately
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/test cremes$
ruby -I
2006 Mar 29
0
cattr_accessor missing for test of AR
Hello.
I''m trying to test an active record adapter. When launching :
ruby -I "connections\native_adaptername" anytest_test.rb
I have an method missing error, complaining about cattr_accessor
(missing from AR:Base).
Any advice ?
Tony
PS : ruby 1.9, rails 1.10 install via gems
--
Posted via http://www.ruby-forum.com/.
2005 Oct 03
3
Boolean quoting, postgresql
http://dev.rubyonrails.org/ticket/1117
I''ve attached a patch to ticket 1117 which fixes it so that booleans
are escaped as booleans, not integers. Specifically, this situation
will now work
find_all(["send_date=? and sent=?", Date.today, false])
Which matches peoples expectations, but it causes some problems with
the postgresql unit tests. Specifically, the use of
2007 Sep 04
4
Could someone take a look at #9477 (new fieldset_tag helper)?
Hi everyone,
I just submitted a patch for a new fieldset_tag helper.
It''s helpful and encourages developers to follow web standards, etc.
"+1"s welcome :-)
http://dev.rubyonrails.org/ticket/9477
Cheers
Damian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
2012 Sep 22
4
Class, Module, Object
>> reload!
Reloading...
=> true
>> puts Class < Module
true
=> nil
>> puts Module < Class
false
=> nil
>> puts Module < Object
true
=> nil
>> puts Object < Module
false
=> nil
>> Object.parent
=> Object
The above indicates that the Class object instance inherits from the
Module object instance and the Module object instance
2009 Jun 04
2
take and look and give your opinion
is this going to affect my ability to play games?
[Image: http://i645.photobucket.com/albums/uu176/photo000019/screencap.jpg ]
[/img]
2018 Jan 03
1
@redhat - someone could take a look or ask about - freeipa-users@redhat.com
sorry guys to spam a bit - I hope someone from redhat could
check whether - freeipa-users at redhat.com - is up & ok?
I've been a subscriber for a couple of years but now,
suddenly(?) I cannot mail there, I get:
"
Sorry, we were unable to deliver your message to the
following address.
<freeipa-users at redhat.com>:
554: 5.7.1 <freeipa-users at redhat.com>: Recipient
2013 Mar 05
0
Please take a look at the TfIdf patch
Hello guys, :) Please do take a look at the pull request for the TfIdf
patch Ive sent because I want to start working on writing DFR schemes for
us and want to incorporate the feedback into making a good hack for the DFR
schemes.The patch incorporates all normalizations possible with our current
statistics and passed all the tests I wrote for it.Have also attached the
tests with the pull request.
2007 Nov 28
1
Someone to take a look on this, translation to spanish
--
"Nuestra recompensa se encuentra en el esfuerzo y no en el resultado.
Un esfuerzo total es una victoria completa".
Mahatma Gandhi
(@ @)
|------o00o-(_)-o00o----------|
|Manuel Enrique Ch?vez Manzano|
|manuel864 at gmail.com |
|manny at cmc.cfg.sld.cu |
|GNU/LINUX User |
|#424754
2006 Mar 05
0
revised shaping rules, please take a look
In my attempt to move my traffic shaping to my router from an internal
box, I have come up with a new set of rules. I would appreciate any
feedback the list members might have.
What I am trying to do is shape my outbound bandwidth so that my que
doesn''t get full. I run a ftp server 24/7, do normal email, some ssh,
web surfing and some downloading. I have a cable modem with 10mbit
2007 Mar 05
1
ODBC Adapter woes
Hi All,
I am running into a little issue the ODBC adapter:
rails: 1.2
ruby: 1.8.4
ODBC ruby binding: .0997
Rails ODBC adapter: 1.4
I have added the ruby bindings to the /ruby/1.8/i386-msvcrt
and used gem to install the ODBC adapter
I updated the enviroment.rb
when I run
ruby -e ''require "odbc"'' it appears to correct (no error response)
1. Is my understanding
2006 Jun 07
1
Using DRb within Rails
I want to use DRb within my Rails app. Right now I''ve got a very basic class:
class PaymentGateway
cattr_accessor :ssl_config, :host, :port
def self.gateway
@@gateway ||= new
end
def process(amount, card, type = :auth)
@biller.process(amount, card, type)
end
def set_card(user_id, number)
@biller.set_card(user_id, number)
end
protected
def initialize
2005 May 06
3
Multipath Routing in same subnet - Please take a look
Hello.
I have the problem that I have two gateways on the same subnet, 80.237.244.1 and 80.237.244.33. Both
gateways are 100 MBit cards, so I have 2 times 100 MBit to the Internet. The NIC in the server is a
gigabit-card, so this card is easy able to use both gateways for outgoing traffic.
Now I just want to use both gateways for my outgoing traffic but no matter what I do, it doesnt
work. I