Displaying 4 results from an estimated 4 matches for "cattr".
Did you mean:
attr
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
...ata,
:sections => sections })
end
It appears to me that he receiver and parameter of that merge message
in the argument to the body message should be reversed.
Am I missing something here?
Because of this I had to do some fairly ugly code which temporarily
set the sections cattr, and I had to act like the request insofar as
providing an env method which returned a hash mapping "HTTP_HOST" to
"localhost"
If this is a bug rather than something I''ve overlooked, should I
submit a patch to the rails trac or is there somewhere else?
--
Rick DeNatal...
2007 Jun 08
0
problem with rake db:sessions:clear and session_table_name
...se the state of
ActiveRecord::Base.pluralize_table_names to set the table mane to
either ''session'' or ''sessions''.
I started working on a patch but got confused figuring out where
table_name is defined in activerecord_store.rb.
It''s defined once as a cattr in this Class:
CGI::Session::ActiveRecordStore::SqlBypass.table_name
and again somehow in this class:
CGI::Session::ActiveRecordStore::Session.table_name
Any suggestions on how the patch should be constructed?
--~--~---------~--~----~------------~-------~--~----~
You received this messag...
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 quest...
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/.
--~--~---------~--~----~------------~-------~--~----~
You received th...